public enum TypeCode extends Enum<TypeCode>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
OBJECT |
SHORT |
Modifier and Type | Method and Description |
---|---|
static TypeCode |
forClass(Class<?> c) |
static TypeCode |
forName(String name) |
Class<?> |
getType() |
static TypeCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeCode OBJECT
public static final TypeCode BOOLEAN
public static final TypeCode BYTE
public static final TypeCode CHAR
public static final TypeCode SHORT
public static final TypeCode INT
public static final TypeCode LONG
public static final TypeCode FLOAT
public static final TypeCode DOUBLE
public static TypeCode[] values()
for (TypeCode c : TypeCode.values()) System.out.println(c);
public static TypeCode 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 Class<?> getType()