Package com.hazelcast.nio.serialization
Enum Class FieldType
- All Implemented Interfaces:
Serializable
,Comparable<FieldType>
,Constable
Field Type for
Portable
format to be used with ClassDefinition.getFieldType(String)
API-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Portable Serialization has been deprecated.Deprecated, for removal: This API element is subject to removal in a future version.Portable Serialization has been deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldType
get
(byte type) byte
getId()
int
boolean
boolean
static FieldType
Returns the enum constant of this class with the specified name.static FieldType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PORTABLE
Deprecated, for removal: This API element is subject to removal in a future version.Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization will be removed as of version 7.0. -
BYTE
-
BOOLEAN
-
CHAR
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
UTF
-
PORTABLE_ARRAY
Deprecated, for removal: This API element is subject to removal in a future version.Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization will be removed as of version 7.0. -
BYTE_ARRAY
-
BOOLEAN_ARRAY
-
CHAR_ARRAY
-
SHORT_ARRAY
-
INT_ARRAY
-
LONG_ARRAY
-
FLOAT_ARRAY
-
DOUBLE_ARRAY
-
UTF_ARRAY
-
DECIMAL
-
DECIMAL_ARRAY
-
TIME
-
TIME_ARRAY
-
DATE
-
DATE_ARRAY
-
TIMESTAMP
-
TIMESTAMP_ARRAY
-
TIMESTAMP_WITH_TIMEZONE
-
TIMESTAMP_WITH_TIMEZONE_ARRAY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 the type does not have a definite size. InvokehasDefiniteSize()
to check first.
-