Package com.opencloud.rhino.util
Enum EncodableSet.BackingStore
- java.lang.Object
-
- java.lang.Enum<EncodableSet.BackingStore>
-
- com.opencloud.rhino.util.EncodableSet.BackingStore
-
- All Implemented Interfaces:
Serializable
,Comparable<EncodableSet.BackingStore>
- Enclosing class:
- EncodableSet<E>
public static enum EncodableSet.BackingStore extends Enum<EncodableSet.BackingStore>
Pre-defined backing stores for the
EncodableSet
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HASH
Pre-defined backing store that creates aHashSet
.LINKED_HASH
Pre-defined backing store that creates aLinkedHashSet
.TREE
Pre-defined backing store that creates anTreeSet
.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
TREE
public static final EncodableSet.BackingStore TREE
Pre-defined backing store that creates an
TreeSet
.
-
HASH
public static final EncodableSet.BackingStore HASH
Pre-defined backing store that creates a
HashSet
.
-
LINKED_HASH
public static final EncodableSet.BackingStore LINKED_HASH
Pre-defined backing store that creates a
LinkedHashSet
.
-
-
Method Detail
-
values
public static EncodableSet.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 (EncodableSet.BackingStore c : EncodableSet.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 EncodableSet.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
-
createSet
protected abstract <E> Set<E> createSet()
-
-