de.unikassel.android.sdcframework.preferences
Class BooleanPreference

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


Constructor Summary
protected BooleanPreference(String key, Boolean defaultValue)
          Constructor
  BooleanPreference(String keyPrefix, String keySuffix, Boolean defaultValue)
          Constructor
 
Method Summary
 Boolean 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

BooleanPreference

protected BooleanPreference(String key,
                            Boolean defaultValue)
Constructor

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

BooleanPreference

public BooleanPreference(String keyPrefix,
                         String keySuffix,
                         Boolean defaultValue)
Constructor

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

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