public abstract class BasePreference<T> extends java.lang.Object implements AppPreference<T>
| Constructor and Description |
|---|
BasePreference(android.content.SharedPreferences sharedPreferences,
java.lang.String key,
T defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the set preference.
|
protected T |
getDefaultValue()
Gets the default value of the preference
|
protected java.lang.String |
getKey()
Gets the key of the preference.
|
protected android.content.SharedPreferences |
getSharedPreferences()
Gets the
SharedPreferences |
boolean |
isSet()
Checks if the preference is set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, setpublic BasePreference(android.content.SharedPreferences sharedPreferences,
java.lang.String key,
T defaultValue)
public boolean isSet()
AppPreferenceisSet in interface AppPreference<T>public void delete()
AppPreferencedelete in interface AppPreference<T>protected java.lang.String getKey()
protected T getDefaultValue()
protected android.content.SharedPreferences getSharedPreferences()
SharedPreferences