java.lang.Object
is.codion.common.model.UserPreferences
A utility class for working with user preferences
-
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 casedefaultValue
is null
-
set
- 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 the preferences to disk- Throws:
BackingStoreException
- in case of a backing store failure
-