|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.solovyev.android.prefs.AbstractPreference<C>
org.solovyev.android.prefs.CollectionSetPreference<Set<T>,T>
org.solovyev.android.prefs.HashSetPreference<T>
public class HashSetPreference<T>
| Method Summary | ||
|---|---|---|
protected Set<T> |
createCollection(int size)
|
|
static
|
ofEnums(String id,
Set<T> defaultValue,
Class<T> enumType)
|
|
static HashSetPreference<String> |
ofStrings(String key,
Set<String> defaultValue)
|
|
static
|
ofTypedValues(String key,
Set<T> defaultValue,
org.solovyev.common.text.Mapper<T> parser)
|
|
| Methods inherited from class org.solovyev.android.prefs.CollectionSetPreference |
|---|
getPersistedValue, putPersistedValue |
| 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 |
|---|
@Nonnull
public static HashSetPreference<String> ofStrings(@Nonnull
String key,
@Nonnull
Set<String> defaultValue)
@Nonnull
public static <T> HashSetPreference<T> ofTypedValues(@Nonnull
String key,
@Nonnull
Set<T> defaultValue,
@Nonnull
org.solovyev.common.text.Mapper<T> parser)
@Nonnull
public static <T extends Enum> HashSetPreference<T> ofEnums(@Nonnull
String id,
@Nonnull
Set<T> defaultValue,
@Nonnull
Class<T> enumType)
@Nonnull protected Set<T> createCollection(int size)
createCollection in class CollectionSetPreference<Set<T>,T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||