public enum CategoryEnum extends Enum<CategoryEnum>
Modifier and Type | Method and Description |
---|---|
static CategoryEnum |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static CategoryEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CategoryEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CategoryEnum DYNAMIC
public static final CategoryEnum STATIC
public static CategoryEnum[] values()
for (CategoryEnum c : CategoryEnum.values()) System.out.println(c);
public static CategoryEnum 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 String getValue()
public String toString()
toString
in class Enum<CategoryEnum>
public static CategoryEnum fromValue(String text)