public enum Type extends Enum<Type>
| Enum Constant and Description |
|---|
ABSTRACT |
ARRAY |
BIG_DECIMAL |
BIG_INT |
BOOLEAN |
BOOLEAN_WRAPPER |
BYTE |
BYTE_WRAPPER |
CHAR |
CHAR_SEQUENCE |
CHAR_WRAPPER |
COLLECTION |
DATE |
DOUBLE |
DOUBLE_WRAPPER |
ENUM |
FALSE |
FLOAT |
FLOAT_WRAPPER |
INSTANCE |
INT |
INTEGER |
INTEGER_WRAPPER |
INTERFACE |
LIST |
LONG |
LONG_WRAPPER |
MAP |
NULL |
NUMBER |
OBJECT |
SET |
SHORT |
SHORT_WRAPPER |
STRING |
SYSTEM |
TRUE |
| Modifier and Type | Method and Description |
|---|---|
static Type |
getInstanceType(Object object) |
static Type |
getType(Class<?> clazz) |
static Type |
getType(String typeName) |
static boolean |
hasLength(Type type) |
static Type |
valueOf(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 INT
public static final Type SHORT
public static final Type BYTE
public static final Type LONG
public static final Type CHAR
public static final Type BOOLEAN
public static final Type COLLECTION
public static final Type ARRAY
public static final Type FLOAT
public static final Type INSTANCE
public static final Type BIG_INT
public static final Type BIG_DECIMAL
public static final Type DATE
public static final Type NUMBER
public static final Type LONG_WRAPPER
public static final Type INTEGER_WRAPPER
public static final Type SHORT_WRAPPER
public static final Type CHAR_WRAPPER
public static final Type BOOLEAN_WRAPPER
public static final Type BYTE_WRAPPER
public static final Type FLOAT_WRAPPER
public static final Type DOUBLE_WRAPPER
public static final Type INTEGER
public static final Type STRING
public static final Type DOUBLE
public static final Type TRUE
public static final Type FALSE
public static final Type NULL
public static final Type MAP
public static final Type LIST
public static final Type SET
public static final Type CHAR_SEQUENCE
public static final Type INTERFACE
public static final Type ABSTRACT
public static final Type OBJECT
public static final Type SYSTEM
public static final Type ENUM
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 boolean hasLength(Type type)
Copyright © 2014. All rights reserved.