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