public enum Unit extends java.lang.Enum<Unit> implements EnumConverter<Unit>
Enum Constant and Description |
---|
CHARS |
CHARS_WITH_SPACES |
STRINGS |
WORDS |
Modifier and Type | Method and Description |
---|---|
static Unit |
from(java.lang.String value) |
java.lang.String |
to(Unit v) |
static Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unit WORDS
public static final Unit STRINGS
public static final Unit CHARS
public static final Unit CHARS_WITH_SPACES
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static Unit 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 Unit from(java.lang.String value)
public java.lang.String to(Unit v)
to
in interface EnumConverter<Unit>