public enum TypeCode extends Enum<TypeCode>
Enum Constant and Description |
---|
BOOLEAN
A
boolean . |
BYTE
A
byte . |
CHAR
A
char . |
DOUBLE
A
double . |
FLOAT
A
float . |
INT
An
int . |
LONG
A
long . |
OBJECT
An
Object . |
SHORT
An
Object . |
Modifier and Type | Method and Description |
---|---|
static TypeCode |
forClass(Class<?> clazz) |
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 BOOLEAN
boolean
.public static final TypeCode BYTE
byte
.public static final TypeCode CHAR
char
.public static final TypeCode DOUBLE
double
.public static final TypeCode FLOAT
float
.public static final TypeCode INT
int
.public static final TypeCode LONG
long
.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()