public static enum InsertOperationObjective.Operator extends java.lang.Enum<InsertOperationObjective.Operator>
Enum Constant and Description |
---|
Addition |
Division |
Modulo |
Multiplication |
Power |
Subtraction |
Modifier and Type | Method and Description |
---|---|
double |
calculate(double a,
double b) |
static InsertOperationObjective.Operator |
get(java.lang.String name) |
static InsertOperationObjective.Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InsertOperationObjective.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InsertOperationObjective.Operator Addition
public static final InsertOperationObjective.Operator Subtraction
public static final InsertOperationObjective.Operator Multiplication
public static final InsertOperationObjective.Operator Division
public static final InsertOperationObjective.Operator Modulo
public static final InsertOperationObjective.Operator Power
public static InsertOperationObjective.Operator[] values()
for (InsertOperationObjective.Operator c : InsertOperationObjective.Operator.values()) System.out.println(c);
public static InsertOperationObjective.Operator 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 double calculate(double a, double b)
public static InsertOperationObjective.Operator get(java.lang.String name)