| Enum Constant and Description |
|---|
BOOL
Bool.
|
FLOAT32
32-bit single precision floating point.
|
INT32
32-bit signed integer.
|
INT64
64-bit signed integer.
|
INT8
8-bit signed integer.
|
STRING
Strings.
|
UINT8
8-bit unsigned integer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
byteSize()
Returns the size of an element of this type, in bytes, or -1 if element size is variable.
|
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 FLOAT32
public static final DataType INT32
public static final DataType UINT8
public static final DataType INT64
public static final DataType STRING
public static final DataType BOOL
public static final DataType INT8
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 byteSize()