public static enum EncodableSet.BackingStore extends Enum<EncodableSet.BackingStore>
Pre-defined backing stores for the EncodableSet
.
Enum Constant and Description |
---|
HASH
Pre-defined backing store that creates a
HashSet . |
LINKED_HASH
Pre-defined backing store that creates a
LinkedHashSet . |
TREE
Pre-defined backing store that creates an
TreeSet . |
Modifier and Type | Method and Description |
---|---|
protected abstract <E> Set<E> |
createSet() |
static EncodableSet.BackingStore |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncodableSet.BackingStore[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodableSet.BackingStore TREE
Pre-defined backing store that creates an TreeSet
.
public static final EncodableSet.BackingStore HASH
Pre-defined backing store that creates a HashSet
.
public static final EncodableSet.BackingStore LINKED_HASH
Pre-defined backing store that creates a LinkedHashSet
.
public static EncodableSet.BackingStore[] values()
for (EncodableSet.BackingStore c : EncodableSet.BackingStore.values()) System.out.println(c);
public static EncodableSet.BackingStore valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected abstract <E> Set<E> createSet()