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