public static enum ArithmeticValueUpdate.Operator extends Enum<ArithmeticValueUpdate.Operator>
Enum Constant and Description |
---|
ADD
Add the operand to the value.
|
DIV
Divide the value by the operand.
|
MUL
Multiply the value by the operand.
|
SUB
Subtract the operand from the value.
|
Modifier and Type | Field and Description |
---|---|
int |
id
The numeric ID of the operator, used for serialization.
|
String |
name
The name of the operator, mainly used in toString() methods.
|
Modifier and Type | Method and Description |
---|---|
static ArithmeticValueUpdate.Operator |
getID(int id)
Returns the operator with the specified ID.
|
static ArithmeticValueUpdate.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArithmeticValueUpdate.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArithmeticValueUpdate.Operator ADD
public static final ArithmeticValueUpdate.Operator DIV
public static final ArithmeticValueUpdate.Operator MUL
public static final ArithmeticValueUpdate.Operator SUB
public final int id
public final String name
public static ArithmeticValueUpdate.Operator[] values()
for (ArithmeticValueUpdate.Operator c : ArithmeticValueUpdate.Operator.values()) System.out.println(c);
public static ArithmeticValueUpdate.Operator 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 static ArithmeticValueUpdate.Operator getID(int id)
id
- the ID to search forCopyright © 2017. All rights reserved.