public static enum WrappedAttributeModifier.Operation extends java.lang.Enum<WrappedAttributeModifier.Operation>
The final value is computed as follows:
ADD_NUMBER
.
MULTIPLY_PERCENTAGE
.ADD_PERCENTAGE
.Enum Constant and Description |
---|
ADD_NUMBER
Increment X by amount.
|
ADD_PERCENTAGE
Multiply Y by (1 + amount)
|
MULTIPLY_PERCENTAGE
Increment Y by X * amount.
|
Modifier and Type | Method and Description |
---|---|
static WrappedAttributeModifier.Operation |
fromId(int id)
Retrieve the associated operation from an ID.
|
int |
getId()
Retrieve the unique operation ID.
|
static WrappedAttributeModifier.Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WrappedAttributeModifier.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WrappedAttributeModifier.Operation ADD_NUMBER
public static final WrappedAttributeModifier.Operation MULTIPLY_PERCENTAGE
public static final WrappedAttributeModifier.Operation ADD_PERCENTAGE
public static WrappedAttributeModifier.Operation[] values()
for (WrappedAttributeModifier.Operation c : WrappedAttributeModifier.Operation.values()) System.out.println(c);
public static WrappedAttributeModifier.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 WrappedAttributeModifier.Operation fromId(int id)
id
- - the ID.