Package com.opencloud.rhino.util
Enum EncodableMap.BackingStore
- java.lang.Object
-
- java.lang.Enum<EncodableMap.BackingStore>
-
- com.opencloud.rhino.util.EncodableMap.BackingStore
-
- All Implemented Interfaces:
Serializable
,Comparable<EncodableMap.BackingStore>
- Enclosing class:
- EncodableMap<K,V>
public static enum EncodableMap.BackingStore extends Enum<EncodableMap.BackingStore>
Pre-defined backing stores for the
EncodableMap
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HASH
Pre-defined backing store that creates aHashMap
.LINKED_HASH
Pre-defined backing store that creates aLinkedHashMap
.TREE
Pre-defined backing store that creates aTreeMap
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
TREE
public static final EncodableMap.BackingStore TREE
Pre-defined backing store that creates a
TreeMap
.
-
HASH
public static final EncodableMap.BackingStore HASH
Pre-defined backing store that creates a
HashMap
.
-
LINKED_HASH
public static final EncodableMap.BackingStore LINKED_HASH
Pre-defined backing store that creates a
LinkedHashMap
.
-
-
Method Detail
-
values
public static EncodableMap.BackingStore[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EncodableMap.BackingStore c : EncodableMap.BackingStore.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncodableMap.BackingStore valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
createMap
protected abstract <K,V> Map<K,V> createMap()
-
-