public enum MathFunction extends java.lang.Enum<MathFunction> implements java.io.Serializable
Enum Constant and Description |
---|
AND
The and.
|
BETWEEN
The between.
|
COS_PLUS
The cos plus.
|
DIVIDE
The divide.
|
EUCLIDE
The euclide.
|
INT_BETWEEN
The int between.
|
IS_PART_OF_UNIT_CIRCLE
The is part of unit circle.
|
MINUS
The minus.
|
MOUNTAIN_CAR
The mountain car.
|
MULT
The mult.
|
OR
The or.
|
PLUS
The plus.
|
XOR
The xor.
|
Modifier and Type | Method and Description |
---|---|
double |
compute(double a,
double b)
Compute.
|
java.lang.String |
getSymbol()
Gets the symbol.
|
static MathFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MathFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MathFunction PLUS
public static final MathFunction MULT
public static final MathFunction MINUS
public static final MathFunction DIVIDE
public static final MathFunction BETWEEN
public static final MathFunction INT_BETWEEN
public static final MathFunction OR
public static final MathFunction AND
public static final MathFunction XOR
public static final MathFunction IS_PART_OF_UNIT_CIRCLE
public static final MathFunction EUCLIDE
public static final MathFunction MOUNTAIN_CAR
public static final MathFunction COS_PLUS
public static MathFunction[] values()
for (MathFunction c : MathFunction.values()) System.out.println(c);
public static MathFunction 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 compute(double a, double b)
a
- the ab
- the bpublic java.lang.String getSymbol()