java.lang.Object
is.codion.common.model.preferences.UserPreferences
A utility class for working with
Preferences.userRoot().-
Method Details
-
get
- Parameters:
key- the key identifying the preference- Returns:
- the user preference associated with the given key
-
get
- Parameters:
key- the key identifying the preferencedefaultValue- the default value if no preference is available- Returns:
- the user preference associated with the given key
- Throws:
NullPointerException- in casedefaultValueis null
-
put
- Parameters:
key- the key to use to identify the preferencevalue- the preference value to associate with the given key
-
remove
Removes the preference associated with the given key- Parameters:
key- the key to use to identify the preference to remove
-
flush
Flushes user preferences to disk- Throws:
BackingStoreException- in case of a backing store failure
-