public enum VariantType extends Enum<VariantType>
Enum Constant and Description |
---|
BOOLEAN |
DOUBLE |
INT32 |
INT64 |
NULL |
STRING |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static VariantType |
fromJavaObject(Object object) |
static VariantType |
fromJavaType(Class<?> clazz) |
static VariantType |
fromValue(byte value)
converts ordinal value to corresponding VariantType
|
Class<? extends Object> |
toJavaType() |
byte |
toValue() |
static VariantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VariantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VariantType BOOLEAN
public static final VariantType INT32
public static final VariantType INT64
public static final VariantType DOUBLE
public static final VariantType STRING
public static final VariantType NULL
public static final VariantType UNKNOWN
public static VariantType[] values()
for (VariantType c : VariantType.values()) System.out.println(c);
public static VariantType 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 static VariantType fromValue(byte value)
value
- public static VariantType fromJavaType(Class<?> clazz)
clazz
- Java classpublic static VariantType fromJavaObject(Object object)
object
- Object for which type is to determinepublic byte toValue()