public class HashSetPreference<T> extends CollectionSetPreference<Set<T>,T>
| Modifier and Type | Method and Description |
|---|---|
protected Set<T> |
createCollection(int size) |
static <T extends Enum> |
ofEnums(String id,
Set<T> defaultValue,
Class<T> enumType) |
static HashSetPreference<String> |
ofStrings(String key,
Set<String> defaultValue) |
static <T> HashSetPreference<T> |
ofTypedValues(String key,
Set<T> defaultValue,
org.solovyev.common.text.Mapper<T> parser) |
getPersistedValue, putPersistedValuegetDefaultValue, getKey, getPreference, getPreferenceNoError, isSameKey, isSet, putDefault, putPreference, tryPutDefault@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>Copyright © 2014 se.solovyev. All Rights Reserved.