org.solovyev.android.prefs
Class FloatPreference

java.lang.Object
  extended by org.solovyev.android.prefs.AbstractPreference<Float>
      extended by 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


Method Summary
protected  Float getPersistedValue(android.content.SharedPreferences preferences)
           
static FloatPreference of(String key, Float defaultValue)
           
protected  void putPersistedValue(android.content.SharedPreferences.Editor editor, Float value)
          Method saved preference to preferences container editor
 
Methods inherited from class org.solovyev.android.prefs.AbstractPreference
getDefaultValue, getKey, getPreference, getPreferenceNoError, isSameKey, isSet, putDefault, putPreference, tryPutDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 saved
value - value to be saved


Copyright © 2014 se.solovyev. All Rights Reserved.