MutablePreferences
Mutable version of Preferences. Allows for creating Preferences with different key-value pairs.
Functions
Retrieve a map of all key preference pairs. The returned map is unmodifiable, and attempts to mutate it will throw runtime exceptions.
Removes the preference with the given key from this MutablePreferences. If this Preferences does not contain the key, this is a no-op.
Appends or replaces all pair to this MutablePreferences.
Appends or replaces all pairs to this MutablePreferences.
Gets a mutable copy of Preferences which contains all the preferences in this Preferences. This can be used to update your preferences without building a new Preferences object from scratch in DataStore.updateData.
Gets a read-only copy of Preferences which contains all the preferences in this Preferences.