public enum Type extends Enum<Type>
Enum Constant and Description |
---|
ABSTRACT |
ARRAY |
BIG_DECIMAL |
BIG_INT |
BOOLEAN |
BOOLEAN_WRAPPER |
BYTE |
BYTE_WRAPPER |
CALENDAR |
CHAR |
CHAR_SEQUENCE |
CHAR_WRAPPER |
CLASS |
COLLECTION |
CURRENCY |
DATE |
DOUBLE |
DOUBLE_WRAPPER |
ENUM |
FALSE |
FILE |
FLOAT |
FLOAT_WRAPPER |
INSTANCE |
INT |
INTEGER |
INTEGER_WRAPPER |
INTERFACE |
LIST |
LOCALE |
LONG |
LONG_WRAPPER |
MAP |
NULL |
NUMBER |
OBJECT |
PATH |
SET |
SHORT |
SHORT_WRAPPER |
STRING |
SYSTEM |
TIME_ZONE |
TRUE |
URI |
URL |
UUID |
VALUE |
VALUE_MAP |
VOID |
Modifier and Type | Method and Description |
---|---|
static List<Object> |
gatherActualTypes(List<?> list) |
static List<Object> |
gatherTypes(List<?> list) |
static List<Type> |
gatherTypes(Object... list) |
static Type |
getInstanceType(Object object) |
static Type |
getType(Class<?> clazz) |
static Type |
getType(String typeName) |
boolean |
hasLength() |
boolean |
isCollection() |
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 final Type CALENDAR
public static final Type VALUE_MAP
public static final Type VALUE
public static final Type CLASS
public static final Type URL
public static final Type URI
public static final Type VOID
public static final Type FILE
public static final Type PATH
public static final Type UUID
public static final Type LOCALE
public static final Type TIME_ZONE
public static final Type CURRENCY
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 boolean hasLength()
public boolean isCollection()
Copyright © 2014. All rights reserved.