public enum ConvertFrom extends Enum<ConvertFrom>
| Modifier and Type | Method and Description |
|---|---|
Boolean |
toBoolean(Object value) |
Number |
toNumber(Object value) |
String |
toString(Object value) |
static ConvertFrom |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConvertFrom[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConvertFrom NUMBER
public static final ConvertFrom STRING
public static final ConvertFrom BOOLEAN
public static ConvertFrom[] values()
for (ConvertFrom c : ConvertFrom.values()) System.out.println(c);
public static ConvertFrom 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 Number toNumber(Object value) throws ParseException
ParseExceptionCopyright © 2017–2018. All rights reserved.