de.unikassel.android.sdcframework.preferences
Class StringPreference
java.lang.Object
de.unikassel.android.sdcframework.preferences.SinglePreferenceImpl<String>
de.unikassel.android.sdcframework.preferences.StringPreference
- All Implemented Interfaces:
- SinglePreference<String>
- Direct Known Subclasses:
- UUIDPreferenceImpl
public class StringPreference
- extends SinglePreferenceImpl<String>
Preference implementation for string types.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringPreference
public StringPreference(String key,
String defaultValue)
- Constructor
- Parameters:
key
- the key valuedefaultValue
- the default value
StringPreference
public StringPreference(String keyPrefix,
String keySuffix,
String defaultValue)
- Constructor
- Parameters:
keyPrefix
- the key prefixkeySuffix
- the key suffixdefaultValue
- the default value
getConfiguration
public String 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