de.unikassel.android.sdcframework.preferences
Class BooleanPreference
java.lang.Object
de.unikassel.android.sdcframework.preferences.SinglePreferenceImpl<Boolean>
de.unikassel.android.sdcframework.preferences.BooleanPreference
- All Implemented Interfaces:
- SinglePreference<Boolean>
- Direct Known Subclasses:
- EnabledPreference
public class BooleanPreference
- extends SinglePreferenceImpl<Boolean>
Preference implementation for boolean types.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BooleanPreference
protected BooleanPreference(String key,
Boolean defaultValue)
- Constructor
- Parameters:
key
- the key valuedefaultValue
- the default value
BooleanPreference
public BooleanPreference(String keyPrefix,
String keySuffix,
Boolean defaultValue)
- Constructor
- Parameters:
keyPrefix
- the key prefixkeySuffix
- the key suffixdefaultValue
- the default value
getConfiguration
public final Boolean getConfiguration(SharedPreferences sharedPreferences)
- Description copied from interface:
SinglePreference
- Getter for the current value in the shared preferences
- Parameters:
sharedPreferences
- the shared application preferences
- Returns:
- the current value