public static enum Maths.Operation extends java.lang.Enum<Maths.Operation>
Enum Constant and Description |
---|
ABS_VALUE
Calculates the absolute value
|
ADD
Add the data
|
CONSTANT
Transforms the input into a constant value
|
DIVIDE
Divide the data
|
EXPONENT
Calculate exponentiation of the data
|
LEFT_SHIFT
Perform left shift
|
MODULUS
Calculate the remainder
|
MULTIPLY
Multiply the data
|
NO_OP
No operation to perform on the data
|
RIGHT_SHIFT
Perform right shift
|
SQRT
Calculate square root
|
SUBTRACT
Subtract the data
|
Modifier and Type | Method and Description |
---|---|
boolean |
requiresRhs() |
static Maths.Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Maths.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Maths.Operation NO_OP
public static final Maths.Operation ADD
public static final Maths.Operation MULTIPLY
public static final Maths.Operation DIVIDE
public static final Maths.Operation MODULUS
public static final Maths.Operation EXPONENT
public static final Maths.Operation SQRT
public static final Maths.Operation LEFT_SHIFT
public static final Maths.Operation RIGHT_SHIFT
public static final Maths.Operation SUBTRACT
public static final Maths.Operation ABS_VALUE
public static final Maths.Operation CONSTANT
public static Maths.Operation[] values()
for (Maths.Operation c : Maths.Operation.values()) System.out.println(c);
public static Maths.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 boolean requiresRhs()