de.unikassel.android.sdcframework.preferences
Class LongPreference

Package class diagram package LongPreference
java.lang.Object
  extended by de.unikassel.android.sdcframework.preferences.SinglePreferenceImpl<Long>
      extended by de.unikassel.android.sdcframework.preferences.LongPreference
All Implemented Interfaces:
SinglePreference<Long>

public class LongPreference
extends SinglePreferenceImpl<Long>

Preference implementation for long types.


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

LongPreference

protected LongPreference(String key,
                         Long defaultValue)
Constructor

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

LongPreference

public LongPreference(String keyPrefix,
                      String keySuffix,
                      Long defaultValue)
Constructor

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

getConfiguration

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