public static enum EncodableMap.BackingStore extends Enum<EncodableMap.BackingStore>
Pre-defined backing stores for the EncodableMap.
| Enum Constant and Description |
|---|
HASH
Pre-defined backing store that creates a
HashMap. |
LINKED_HASH
Pre-defined backing store that creates a
LinkedHashMap. |
TREE
Pre-defined backing store that creates a
TreeMap. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract <K,V> Map<K,V> |
createMap() |
static EncodableMap.BackingStore |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncodableMap.BackingStore[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncodableMap.BackingStore TREE
Pre-defined backing store that creates a TreeMap.
public static final EncodableMap.BackingStore HASH
Pre-defined backing store that creates a HashMap.
public static final EncodableMap.BackingStore LINKED_HASH
Pre-defined backing store that creates a LinkedHashMap.
public static EncodableMap.BackingStore[] values()
for (EncodableMap.BackingStore c : EncodableMap.BackingStore.values()) System.out.println(c);
public static EncodableMap.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 <K,V> Map<K,V> createMap()