org.solovyev.android.prefs
Class LongPreference

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


Method Summary
protected  Long getPersistedValue(android.content.SharedPreferences preferences)
           
static LongPreference of(String key, Long defaultValue)
           
protected  void putPersistedValue(android.content.SharedPreferences.Editor editor, Long 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 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 saved
value - value to be saved


Copyright © 2014 se.solovyev. All Rights Reserved.