Enum DataStructureType
- java.lang.Object
-
- java.lang.Enum<DataStructureType>
-
- org.apache.ignite.internal.processors.datastructures.DataStructureType
-
- All Implemented Interfaces:
Serializable,Comparable<DataStructureType>
public enum DataStructureType extends Enum<DataStructureType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATOMIC_LONGATOMIC_REFATOMIC_SEQATOMIC_STAMPEDCOUNT_DOWN_LATCHQUEUEREENTRANT_LOCKSEMAPHORESET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()static @Nullable DataStructureTypefromOrdinal(int ord)booleanisCollection()booleanisVolatile()static DataStructureTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DataStructureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATOMIC_LONG
public static final DataStructureType ATOMIC_LONG
-
ATOMIC_REF
public static final DataStructureType ATOMIC_REF
-
ATOMIC_SEQ
public static final DataStructureType ATOMIC_SEQ
-
ATOMIC_STAMPED
public static final DataStructureType ATOMIC_STAMPED
-
COUNT_DOWN_LATCH
public static final DataStructureType COUNT_DOWN_LATCH
-
QUEUE
public static final DataStructureType QUEUE
-
SET
public static final DataStructureType SET
-
SEMAPHORE
public static final DataStructureType SEMAPHORE
-
REENTRANT_LOCK
public static final DataStructureType REENTRANT_LOCK
-
-
Method Detail
-
values
public static DataStructureType[] 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 (DataStructureType c : DataStructureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataStructureType 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
-
className
public String className()
- Returns:
- Data structure public class name.
-
isVolatile
public boolean isVolatile()
- Returns:
Trueif this data structure type is volatile.
-
isCollection
public boolean isCollection()
- Returns:
Trueif this data structure type is collection.
-
fromOrdinal
@Nullable public static @Nullable DataStructureType fromOrdinal(int ord)
- Parameters:
ord- Ordinal value.- Returns:
- Enumerated value or
nullif ordinal out of range.
-
-