public enum FieldType extends Enum<FieldType>
Enum Constant and 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 |
Modifier and Type | Method and 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.
|
public static final FieldType PORTABLE
public static final FieldType BYTE
public static final FieldType BOOLEAN
public static final FieldType CHAR
public static final FieldType SHORT
public static final FieldType INT
public static final FieldType LONG
public static final FieldType FLOAT
public static final FieldType DOUBLE
public static final FieldType UTF
public static final FieldType PORTABLE_ARRAY
public static final FieldType BYTE_ARRAY
public static final FieldType BOOLEAN_ARRAY
public static final FieldType CHAR_ARRAY
public static final FieldType SHORT_ARRAY
public static final FieldType INT_ARRAY
public static final FieldType LONG_ARRAY
public static final FieldType FLOAT_ARRAY
public static final FieldType DOUBLE_ARRAY
public static final FieldType UTF_ARRAY
public static FieldType[] values()
for (FieldType c : FieldType.values()) System.out.println(c);
public static FieldType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getId()
public static FieldType get(byte type)
public boolean isArrayType()
public FieldType getSingleType()
public boolean hasDefiniteSize()
public int getTypeSize() throws IllegalArgumentException
IllegalArgumentException
- if type does not have a definite type. Invoke hasDefiniteSize() to check before.Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.