public static enum BinaryOperation.OpType extends java.lang.Enum<BinaryOperation.OpType>
| Enum Constant and Description |
|---|
DIVIDE
This operation represents a division as in 4 * 2.
|
MINUS
This operation represents a subtraction as in 2 - 1.
|
MODULUS
This operation represents a modulus as in 5 % 2.
|
MULTIPLY
This operation represents a multiplication as in 2 * 3.
|
PLUS
This operation represents an addition as in 1 + 2.
|
| Modifier and Type | Method and Description |
|---|---|
static BinaryOperation.OpType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BinaryOperation.OpType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BinaryOperation.OpType PLUS
public static final BinaryOperation.OpType MINUS
public static final BinaryOperation.OpType MULTIPLY
public static final BinaryOperation.OpType DIVIDE
public static final BinaryOperation.OpType MODULUS
public static BinaryOperation.OpType[] values()
for (BinaryOperation.OpType c : BinaryOperation.OpType.values()) System.out.println(c);
public static BinaryOperation.OpType 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 null