static enum ValueCodex.Type extends java.lang.Enum<ValueCodex.Type>
Enum Constant and Description |
---|
BIG_DECIMAL |
BIG_INTEGER |
BOOLEAN |
BYTE |
CHARACTER |
DATE |
DOUBLE |
ENUM |
FLOAT |
INTEGER |
LONG |
SHORT |
SPLITTABLE |
STRING |
VOID |
Modifier and Type | Method and Description |
---|---|
boolean |
canUpcast(java.lang.Object value)
Determines whether or not the Type can handle the given value via
upcasting semantics.
|
abstract java.lang.Object |
decode(java.lang.Class<?> clazz,
Splittable value) |
abstract Splittable |
encode(java.lang.Object value) |
java.lang.Object |
getDefaultValue() |
java.lang.Class<?> |
getPrimitiveType() |
java.lang.Class<?> |
getType() |
static ValueCodex.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ValueCodex.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueCodex.Type BIG_DECIMAL
public static final ValueCodex.Type BIG_INTEGER
public static final ValueCodex.Type BOOLEAN
public static final ValueCodex.Type BYTE
public static final ValueCodex.Type CHARACTER
public static final ValueCodex.Type DATE
public static final ValueCodex.Type DOUBLE
public static final ValueCodex.Type ENUM
public static final ValueCodex.Type FLOAT
public static final ValueCodex.Type INTEGER
public static final ValueCodex.Type LONG
public static final ValueCodex.Type SHORT
public static final ValueCodex.Type STRING
public static final ValueCodex.Type SPLITTABLE
public static final ValueCodex.Type VOID
public static ValueCodex.Type[] values()
for (ValueCodex.Type c : ValueCodex.Type.values()) System.out.println(c);
public static ValueCodex.Type 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 boolean canUpcast(java.lang.Object value)
value
- a value Objectpublic abstract java.lang.Object decode(java.lang.Class<?> clazz, Splittable value)
public abstract Splittable encode(java.lang.Object value)
public java.lang.Object getDefaultValue()
public java.lang.Class<?> getPrimitiveType()
public java.lang.Class<?> getType()