private static enum BasicTypesMessageProvider.PrimitiveTypes extends java.lang.Enum<BasicTypesMessageProvider.PrimitiveTypes>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
primitive |
private java.lang.Class<?> |
wrapper |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
convert(java.lang.String s) |
static BasicTypesMessageProvider.PrimitiveTypes |
forType(java.lang.Class<?> type) |
boolean |
supports(java.lang.Class<?> type) |
static BasicTypesMessageProvider.PrimitiveTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BasicTypesMessageProvider.PrimitiveTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicTypesMessageProvider.PrimitiveTypes BYTE
public static final BasicTypesMessageProvider.PrimitiveTypes SHORT
public static final BasicTypesMessageProvider.PrimitiveTypes INTEGER
public static final BasicTypesMessageProvider.PrimitiveTypes LONG
public static final BasicTypesMessageProvider.PrimitiveTypes FLOAT
public static final BasicTypesMessageProvider.PrimitiveTypes DOUBLE
public static final BasicTypesMessageProvider.PrimitiveTypes BOOLEAN
public static final BasicTypesMessageProvider.PrimitiveTypes CHAR
private final java.lang.Class<?> wrapper
private final java.lang.Class<?> primitive
public static BasicTypesMessageProvider.PrimitiveTypes[] values()
for (BasicTypesMessageProvider.PrimitiveTypes c : BasicTypesMessageProvider.PrimitiveTypes.values()) System.out.println(c);
public static BasicTypesMessageProvider.PrimitiveTypes 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 static BasicTypesMessageProvider.PrimitiveTypes forType(java.lang.Class<?> type)
public abstract java.lang.Object convert(java.lang.String s)
public boolean supports(java.lang.Class<?> type)