public class CollectionToStringPreference<C extends Collection<T>,T> extends AbstractPreference<C>
| Modifier and Type | Method and Description |
|---|---|
static <T> CollectionToStringPreference<List<T>,T> |
forList(String key,
List<T> defaultValue,
org.solovyev.common.text.Mapper<List<T>> mapper) |
static CollectionToStringPreference<List<String>,String> |
forStringList(String key,
List<String> defaultValue) |
static <T> CollectionToStringPreference<List<T>,T> |
forTypedList(String key,
List<T> defaultValue,
org.solovyev.common.text.Mapper<T> mapper) |
protected C |
getPersistedValue(android.content.SharedPreferences preferences) |
protected void |
putPersistedValue(android.content.SharedPreferences.Editor editor,
C values)
Method saved preference to preferences container editor
|
getDefaultValue, getKey, getPreference, getPreferenceNoError, isSameKey, isSet, putDefault, putPreference, tryPutDefault@Nonnull public static <T> CollectionToStringPreference<List<T>,T> forList(@Nonnull String key, @Nullable List<T> defaultValue, @Nonnull org.solovyev.common.text.Mapper<List<T>> mapper)
@Nonnull public static <T> CollectionToStringPreference<List<T>,T> forTypedList(@Nonnull String key, @Nullable List<T> defaultValue, @Nonnull org.solovyev.common.text.Mapper<T> mapper)
@Nonnull public static CollectionToStringPreference<List<String>,String> forStringList(@Nonnull String key, @Nullable List<String> defaultValue)
protected C getPersistedValue(@Nonnull android.content.SharedPreferences preferences)
getPersistedValue in class AbstractPreference<C extends Collection<T>>preferences - preferences containerAbstractPreference.getKey() methodprotected void putPersistedValue(@Nonnull android.content.SharedPreferences.Editor editor, @Nonnull C values)
AbstractPreferenceputPersistedValue in class AbstractPreference<C extends Collection<T>>editor - editor in which value must be savedvalues - value to be savedCopyright © 2014 se.solovyev. All Rights Reserved.