| Enum Constant and Description |
|---|
AUTO |
BINARY |
BOOL |
COLOR |
NUMBER |
OBJECT |
STRING |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convert(java.lang.String obj) |
java.lang.Object[] |
convert(java.lang.String[] obj) |
java.lang.Object |
convert(java.lang.String obj,
java.lang.Class<?> expectedType) |
static ParamType |
from(java.lang.Class<?> type) |
int |
value() |
static ParamType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ParamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParamType NUMBER
public static final ParamType STRING
public static final ParamType BOOL
public static final ParamType COLOR
public static final ParamType BINARY
public static final ParamType OBJECT
public static final ParamType AUTO
public static ParamType[] values()
for (ParamType c : ParamType.values()) System.out.println(c);
public static ParamType 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 int value()
public static ParamType from(java.lang.Class<?> type)
public java.lang.Object[] convert(java.lang.String[] obj)
public java.lang.Object convert(java.lang.String obj)
public java.lang.Object convert(java.lang.String obj,
java.lang.Class<?> expectedType)