Package com.opencloud.rhino.util
Enum EncodableList.BackingStore
- java.lang.Object
-
- java.lang.Enum<EncodableList.BackingStore>
-
- com.opencloud.rhino.util.EncodableList.BackingStore
-
- All Implemented Interfaces:
Serializable
,Comparable<EncodableList.BackingStore>
- Enclosing class:
- EncodableList<E>
public static enum EncodableList.BackingStore extends Enum<EncodableList.BackingStore>
Pre-defined backing stores for the
EncodableList
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
Pre-defined backing store that creates anArrayList
.LINKED
Pre-defined backing store that creates aLinkedList
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract <E> List<E>
createList()
static EncodableList.BackingStore
valueOf(String name)
Returns the enum constant of this type with the specified name.static EncodableList.BackingStore[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRAY
public static final EncodableList.BackingStore ARRAY
Pre-defined backing store that creates an
ArrayList
.
-
LINKED
public static final EncodableList.BackingStore LINKED
Pre-defined backing store that creates a
LinkedList
.
-
-
Method Detail
-
values
public static EncodableList.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 (EncodableList.BackingStore c : EncodableList.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 EncodableList.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
-
createList
protected abstract <E> List<E> createList()
-
-