de.unikassel.android.sdcframework.preferences
Class IntegerPreference

Package class diagram package IntegerPreference
java.lang.Object
  extended by de.unikassel.android.sdcframework.preferences.SinglePreferenceImpl<Integer>
      extended by de.unikassel.android.sdcframework.preferences.IntegerPreference
All Implemented Interfaces:
SinglePreference<Integer>
Direct Known Subclasses:
FrequencyPreference

public class IntegerPreference
extends SinglePreferenceImpl<Integer>

Preference implementation for integer types.


Constructor Summary
IntegerPreference(String key, Integer defaultValue)
          Constructor
IntegerPreference(String keyPrefix, String keySuffix, Integer defaultValue)
          Constructor
 
Method Summary
 Integer 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

IntegerPreference

public IntegerPreference(String key,
                         Integer defaultValue)
Constructor

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

IntegerPreference

public IntegerPreference(String keyPrefix,
                         String keySuffix,
                         Integer defaultValue)
Constructor

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

getConfiguration

public Integer 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