de.unikassel.android.sdcframework.preferences
Class StringPreference

Package class diagram package StringPreference
java.lang.Object
  extended by de.unikassel.android.sdcframework.preferences.SinglePreferenceImpl<String>
      extended by 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.


Constructor Summary
StringPreference(String key, String defaultValue)
          Constructor
StringPreference(String keyPrefix, String keySuffix, String defaultValue)
          Constructor
 
Method Summary
 String getConfiguration(SharedPreferences sharedPreferences)
          Getter for the current value in the shared preferences
 
Methods inherited from class de.unikassel.android.sdcframework.preferences.SinglePreferenceImpl
getDefault, getKey, setDefault, testForKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPreference

public StringPreference(String key,
                        String defaultValue)
Constructor

Parameters:
key - the key value
defaultValue - the default value

StringPreference

public StringPreference(String keyPrefix,
                        String keySuffix,
                        String defaultValue)
Constructor

Parameters:
keyPrefix - the key prefix
keySuffix - the key suffix
defaultValue - the default value
Method Detail

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