Enum Constant and Description |
---|
ARRAY
(any) object array
|
BOOLEAN
Boolean
|
BOOLEAN_ARRAY
primitive boolean array
|
BYTE
byte
|
BYTE_ARRAY
primitive byte array
|
CHAR_ARRAY
primitive char array
|
CHARACTER
Character
|
COLLECTION
collection, like list or set
|
DATE
date
|
DOUBLE
Double
|
DOUBLE_ARRAY
primitive double array
|
ENUM
enum
|
FLOAT
Float
|
FLOAT_ARRAY
primitive float array
|
INT_ARRAY
primitive int array
|
INTEGER
Integer
|
LONG
Long
|
LONG_ARRAY
primitive long array
|
MAP
a map holding key-value pairs
|
NULL
null value
|
OBJECT
any object
|
SHORT
Short
|
SHORT_ARRAY
primitive short array
|
STRING
string
|
TIMESTAMP
timestamp
|
Modifier and Type | Method and Description |
---|---|
static Type |
getByClazz(java.lang.Class<?> value)
Returns type based on class
|
static Type |
getByFlag(byte value)
Returns type matching the bit pattern or null if not found.
|
static Type |
getByValue(java.lang.Object value)
Returns type matching the type of the given value.
|
java.lang.Class<?> |
getClazz()
Returns the class associated with this type
|
byte |
getFlag()
Byte representation of this type
|
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type NULL
public static final Type BYTE
public static final Type SHORT
public static final Type INTEGER
public static final Type LONG
public static final Type FLOAT
public static final Type DOUBLE
public static final Type BOOLEAN
public static final Type CHARACTER
public static final Type OBJECT
public static final Type STRING
public static final Type DATE
public static final Type TIMESTAMP
public static final Type ENUM
public static final Type BYTE_ARRAY
public static final Type SHORT_ARRAY
public static final Type INT_ARRAY
public static final Type LONG_ARRAY
public static final Type FLOAT_ARRAY
public static final Type DOUBLE_ARRAY
public static final Type BOOLEAN_ARRAY
public static final Type CHAR_ARRAY
public static final Type COLLECTION
public static final Type ARRAY
public static final Type MAP
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 java.lang.Class<?> getClazz()
public byte getFlag()
public static Type getByFlag(byte value)
value
- bit patternpublic static Type getByClazz(java.lang.Class<?> value)
value
- a class, maybe a subclass or a concrete classpublic static Type getByValue(java.lang.Object value)
value
- the value to examine