public static enum Attributes.Operation extends java.lang.Enum<Attributes.Operation>
Enum Constant and Description |
---|
ADD_NUMBER |
ADD_PERCENTAGE |
MULTIPLY_PERCENTAGE |
Modifier and Type | Method and Description |
---|---|
static Attributes.Operation |
fromId(int id) |
int |
getId() |
static Attributes.Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Attributes.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Attributes.Operation ADD_NUMBER
public static final Attributes.Operation MULTIPLY_PERCENTAGE
public static final Attributes.Operation ADD_PERCENTAGE
public static Attributes.Operation[] values()
for (Attributes.Operation c : Attributes.Operation.values()) System.out.println(c);
public static Attributes.Operation 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 int getId()
public static Attributes.Operation fromId(int id)