public enum DistributedDataStructureType extends java.lang.Enum<DistributedDataStructureType>
Enum Constant | Description |
---|---|
Counter |
For distributed counter.
|
List |
For distributed list.
|
Map |
For distributed Map.
|
Queue |
For distributed queue.
|
Set |
For distributed set.
|
Modifier and Type | Method | Description |
---|---|---|
static DistributedDataStructureType |
forValue(int value) |
retreives the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
|
static DistributedDataStructureType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static DistributedDataStructureType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DistributedDataStructureType List
public static final DistributedDataStructureType Queue
public static final DistributedDataStructureType Set
public static final DistributedDataStructureType Map
public static final DistributedDataStructureType Counter
public static DistributedDataStructureType[] values()
for (DistributedDataStructureType c : DistributedDataStructureType.values()) System.out.println(c);
public static DistributedDataStructureType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static DistributedDataStructureType forValue(int value)
value
- enum constant index