protected static enum DuckType.Types extends java.lang.Enum<DuckType.Types>
Enum Constant and Description |
---|
BOOLEAN |
EMPTY |
LENGTH |
NUMBER |
SIZE |
STRING |
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Map<java.lang.Class<?>,java.lang.Object> |
cache |
(package private) java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
get(java.lang.Class<?> c) |
(package private) void |
set(java.lang.Class<?> c,
java.lang.Object o) |
static DuckType.Types |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DuckType.Types[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DuckType.Types STRING
public static final DuckType.Types NUMBER
public static final DuckType.Types BOOLEAN
public static final DuckType.Types EMPTY
public static final DuckType.Types LENGTH
public static final DuckType.Types SIZE
final java.lang.String name
final java.util.Map<java.lang.Class<?>,java.lang.Object> cache
public static DuckType.Types[] values()
for (DuckType.Types c : DuckType.Types.values()) System.out.println(c);
public static DuckType.Types 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 nullvoid set(java.lang.Class<?> c, java.lang.Object o)
java.lang.Object get(java.lang.Class<?> c)