org.solovyev.android.prefs
Class LongPreference
java.lang.Object
org.solovyev.android.prefs.AbstractPreference<Long>
org.solovyev.android.prefs.LongPreference
- All Implemented Interfaces:
- Preference<Long>
public class LongPreference
- extends AbstractPreference<Long>
User: serso
Date: 12/25/11
Time: 1:07 PM
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
of
@Nonnull
public static LongPreference of(@Nonnull
String key,
@Nullable
Long defaultValue)
getPersistedValue
protected Long getPersistedValue(@Nonnull
android.content.SharedPreferences preferences)
- Specified by:
getPersistedValue in class AbstractPreference<Long>
- Parameters:
preferences - preferences container
- Returns:
- preference value from preferences with key defined by
AbstractPreference.getKey() method
putPersistedValue
protected void putPersistedValue(@Nonnull
android.content.SharedPreferences.Editor editor,
@Nonnull
Long value)
- Description copied from class:
AbstractPreference
- Method saved preference to preferences container editor
- Specified by:
putPersistedValue in class AbstractPreference<Long>
- Parameters:
editor - editor in which value must be savedvalue - value to be saved
Copyright © 2014 se.solovyev. All Rights Reserved.