Enum Constant and Description |
---|
ARRAY
Array of primitives
|
BOOLEAN
Boolean 1-byte
|
BYTE
Signed 1-byte
|
DOUBLE
64-bit floating point
|
FLOAT
32-bit floating point
|
INTEGER
Signed 4-byte
|
LONG
Signed 8-byte
|
SHORT
Signed 2-byte
|
STRING
character data in 16-bit Unicode
|
STRUCT
Complex type
|
STRUCTARRAY
Array of complex types
|
U1
Unsigned 1-byte
|
U2
Unsigned 2-byte
|
U4
Unsigned 4-byte
|
U8
Unsigned 8-byte
|
UTF8
Character data in UTF-8 format,
|
Modifier and Type | Field and Description |
---|---|
private boolean |
m_numeric |
private int |
m_size |
private boolean |
m_textual |
Modifier and Type | Method and Description |
---|---|
int |
getSize() |
boolean |
isNumeric() |
boolean |
isPrimitive() |
boolean |
isTextual() |
static DataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType BOOLEAN
public static final DataType BYTE
public static final DataType U1
public static final DataType SHORT
public static final DataType U2
public static final DataType INTEGER
public static final DataType U4
public static final DataType LONG
public static final DataType U8
public static final DataType FLOAT
public static final DataType DOUBLE
public static final DataType UTF8
public static final DataType STRING
public static final DataType ARRAY
public static final DataType STRUCT
public static final DataType STRUCTARRAY
private final int m_size
private final boolean m_textual
private final boolean m_numeric
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType 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 getSize()
public boolean isPrimitive()
public boolean isTextual()
public boolean isNumeric()