@Api public enum BasicTypes extends Enum<BasicTypes>
| Enum Constant and Description |
|---|
BOOLEAN |
BOOLEAN_ARRAY |
DATE |
DATE_ARRAY |
DATETIME |
DATETIME_ARRAY |
FLOAT |
FLOAT_ARRAY |
INTEGER |
INTEGER_ARRAY |
STRING |
STRING_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
Type<?> |
getType()
Returns type instance.
|
static boolean |
isBasic(Type<?> type)
Checks if given type is one of BasicTypes.
|
static Type<?> |
of(Class<?> clazz)
Returns basic type that is
Type.isInstance(Class) of given class. |
static BasicTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BasicTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicTypes BOOLEAN
public static final BasicTypes STRING
public static final BasicTypes INTEGER
public static final BasicTypes FLOAT
public static final BasicTypes DATE
public static final BasicTypes DATETIME
public static final BasicTypes BOOLEAN_ARRAY
public static final BasicTypes STRING_ARRAY
public static final BasicTypes INTEGER_ARRAY
public static final BasicTypes FLOAT_ARRAY
public static final BasicTypes DATE_ARRAY
public static final BasicTypes DATETIME_ARRAY
public static BasicTypes[] values()
for (BasicTypes c : BasicTypes.values()) System.out.println(c);
public static BasicTypes 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 Type<?> getType()
public static Type<?> of(Class<?> clazz)
Type.isInstance(Class) of given class.clazz - java classType that is mapped to specified java classpublic static boolean isBasic(Type<?> type)
type - typeCopyright © 2018 Suncode. All rights reserved.