public enum ConvertType extends java.lang.Enum<ConvertType>
Enum Constant and Description |
---|
AUTO
bool/byte, short, int, long; from left -> right;
|
MANUAL
other
|
MAYBE_AUTO
byte/short/int/long -> float/double, may lose precision;
|
SAME
no change
|
Modifier and Type | Method and Description |
---|---|
static ConvertType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConvertType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConvertType SAME
no change
bool -> byte
public static final ConvertType AUTO
bool/byte, short, int, long; from left -> right;
float -> double;
bean has child as auto, or not as key and less child (abc -> ab);
collection element as auto;
public static final ConvertType MAYBE_AUTO
byte/short/int/long -> float/double, may lose precision;
bean has child as maybe_auto, or more child (ab -> abc), or not as key and less-more child (abc -> abd)
collection element as maybe_auto;
public static final ConvertType MANUAL
public static ConvertType[] values()
for (ConvertType c : ConvertType.values()) System.out.println(c);
public static ConvertType 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 null