Package com.hazelcast.nio.serialization
Enum FieldType
- All Implemented Interfaces:
Serializable
,Comparable<FieldType>
,java.lang.constant.Constable
public enum FieldType extends Enum<FieldType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
BOOLEAN_ARRAY
BYTE
BYTE_ARRAY
CHAR
CHAR_ARRAY
DOUBLE
DOUBLE_ARRAY
FLOAT
FLOAT_ARRAY
INT
INT_ARRAY
LONG
LONG_ARRAY
PORTABLE
PORTABLE_ARRAY
SHORT
SHORT_ARRAY
UTF
UTF_ARRAY
-
Method Summary
Modifier and Type Method Description static FieldType
get(byte type)
byte
getId()
FieldType
getSingleType()
int
getTypeSize()
boolean
hasDefiniteSize()
boolean
isArrayType()
static FieldType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FieldType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PORTABLE
-
BYTE
-
BOOLEAN
-
CHAR
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
UTF
-
PORTABLE_ARRAY
-
BYTE_ARRAY
-
BOOLEAN_ARRAY
-
CHAR_ARRAY
-
SHORT_ARRAY
-
INT_ARRAY
-
LONG_ARRAY
-
FLOAT_ARRAY
-
DOUBLE_ARRAY
-
UTF_ARRAY
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getId
public byte getId() -
get
-
isArrayType
public boolean isArrayType() -
getSingleType
-
hasDefiniteSize
public boolean hasDefiniteSize() -
getTypeSize
- Returns:
- size of an element of the type represented by this object
- Throws:
IllegalArgumentException
- if type does not have a definite type. Invoke hasDefiniteSize() to check before.
-