org.solovyev.android.prefs
Class HashSetPreference<T>

java.lang.Object
  extended by org.solovyev.android.prefs.AbstractPreference<C>
      extended by org.solovyev.android.prefs.CollectionSetPreference<Set<T>,T>
          extended by org.solovyev.android.prefs.HashSetPreference<T>
All Implemented Interfaces:
Preference<Set<T>>

public class HashSetPreference<T>
extends CollectionSetPreference<Set<T>,T>


Method Summary
protected  Set<T> createCollection(int size)
           
static
<T extends Enum>
HashSetPreference<T>
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)
           
 
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

ofStrings

@Nonnull
public static HashSetPreference<String> ofStrings(@Nonnull
                                                          String key,
                                                          @Nonnull
                                                          Set<String> defaultValue)

ofTypedValues

@Nonnull
public static <T> HashSetPreference<T> ofTypedValues(@Nonnull
                                                             String key,
                                                             @Nonnull
                                                             Set<T> defaultValue,
                                                             @Nonnull
                                                             org.solovyev.common.text.Mapper<T> parser)

ofEnums

@Nonnull
public static <T extends Enum> HashSetPreference<T> ofEnums(@Nonnull
                                                                    String id,
                                                                    @Nonnull
                                                                    Set<T> defaultValue,
                                                                    @Nonnull
                                                                    Class<T> enumType)

createCollection

@Nonnull
protected Set<T> createCollection(int size)
Specified by:
createCollection in class CollectionSetPreference<Set<T>,T>


Copyright © 2014 se.solovyev. All Rights Reserved.