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