public enum DataType extends Enum<DataType>
| Enum Constant and Description |
|---|
BOOL |
BOOL_ARRAY |
BYTE |
BYTE_ARRAY |
CHAR |
CHAR_ARRAY |
COLLECTION |
DOUBLE |
DOUBLE_ARRAY |
END_MARKER |
ENUM |
FLOAT |
FLOAT_ARRAY |
INT |
INT_ARRAY |
LIST |
LONG |
LONG_ARRAY |
MAP |
OTHER |
QUEUE |
SET |
SHORT |
SHORT_ARRAY |
START_MARKER |
STRING |
STRING_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
static DataType |
fromByte(byte value)
Returns the data type matching the given byte representation, if any.
|
static DataType |
fromClassType(Class<?> classType)
Returns the data type matching the given java class type, if any.
|
static DataType |
fromJavaTypeString(String str)
Returns the data type matching the given java string representation, if any.
|
static DataType |
fromString(String str)
Returns the data type matching the given string representation, if any.
|
byte |
getAsByte()
Returns the byte representation of the data type.
|
String |
getAsString()
Returns the string representation of the data type.
|
List<Class<?>> |
getClassTypes()
Returns the corresponding java class type matching the given data type
|
String |
getJavaName()
Returns the string representation of the java class type.
|
long |
getPrimitiveSize() |
boolean |
isArray() |
boolean |
isObject() |
boolean |
isScalar() |
static DataType |
valueOf(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 START_MARKER
public static final DataType BOOL
public static final DataType BYTE
public static final DataType SHORT
public static final DataType INT
public static final DataType LONG
public static final DataType FLOAT
public static final DataType DOUBLE
public static final DataType CHAR
public static final DataType STRING
public static final DataType BOOL_ARRAY
public static final DataType BYTE_ARRAY
public static final DataType SHORT_ARRAY
public static final DataType INT_ARRAY
public static final DataType LONG_ARRAY
public static final DataType FLOAT_ARRAY
public static final DataType DOUBLE_ARRAY
public static final DataType CHAR_ARRAY
public static final DataType STRING_ARRAY
public static final DataType COLLECTION
public static final DataType ENUM
public static final DataType LIST
public static final DataType MAP
public static final DataType QUEUE
public static final DataType SET
public static final DataType OTHER
public static final DataType END_MARKER
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static DataType 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 getAsByte()
public String getAsString()
public List<Class<?>> getClassTypes()
public String getJavaName()
public long getPrimitiveSize()
public boolean isArray()
public boolean isObject()
public boolean isScalar()
public static DataType fromByte(byte value)
value - the value to be searchedpublic static DataType fromClassType(Class<?> classType)
classType - the value to be searchedpublic static DataType fromJavaTypeString(String str)
str - the string to be searchedCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.