-
public interface PreferencesStorageInterface to define the preference storage.
-
-
Method Summary
Modifier and Type Method Description abstract UnitputFloat(String key, Float value)Put a float value in the storage. abstract FloatgetFloat(String key, Float defaultValue)Get a float value from the storage. abstract UnitputInt(String key, Integer value)Put an integer value in the storage. abstract IntegergetInt(String key, Integer defaultValue)Get an integer value from the storage. abstract StringgetString(String key, String defaultValue)Put a string value in the storage. abstract UnitputString(String key, String value)Put a string value in the storage. abstract Set<String>getStringSet(String key, Set<String> defaultValue)Get a string set value from the storage. abstract UnitputStringSet(String key, Set<String> value)Put a string set value in the storage. abstract UnitputBoolean(String key, Boolean value)Put a boolean value in the storage. abstract BooleangetBoolean(String key, Boolean defaultValue)Get a boolean value from the storage. abstract Unitremove(String key)Remove a value from the storage. abstract Unitclear()Clear all values from the storage. -
-
Method Detail
-
getFloat
abstract Float getFloat(String key, Float defaultValue)
Get a float value from the storage.
-
getInt
abstract Integer getInt(String key, Integer defaultValue)
Get an integer value from the storage.
-
getString
abstract String getString(String key, String defaultValue)
Put a string value in the storage.
-
getStringSet
abstract Set<String> getStringSet(String key, Set<String> defaultValue)
Get a string set value from the storage.
-
putStringSet
abstract Unit putStringSet(String key, Set<String> value)
Put a string set value in the storage.
-
putBoolean
abstract Unit putBoolean(String key, Boolean value)
Put a boolean value in the storage.
-
getBoolean
abstract Boolean getBoolean(String key, Boolean defaultValue)
Get a boolean value from the storage.
-
-
-
-