Enum BinaryExpression.Operator
- java.lang.Object
-
- java.lang.Enum<BinaryExpression.Operator>
-
- com.speedment.runtime.compute.expression.BinaryExpression.Operator
-
- All Implemented Interfaces:
Serializable,Comparable<BinaryExpression.Operator>
- Enclosing interface:
- BinaryExpression<T,FIRST extends Expression<T>,SECOND extends Expression<T>>
public static enum BinaryExpression.Operator extends Enum<BinaryExpression.Operator>
Operator types that could be returned byBinaryExpression.operator().
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIVIDEThe result of the first operand divided by the second (division).MINUSThe result of the first operand minus the second (subtraction).MULTIPLYThe result of the first operand multiplied by the second (multiplication).PLUSThe result of the first operand added to the second (addition).POWThe result of the first operand raised to the power of the second.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BinaryExpression.OperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static BinaryExpression.Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POW
public static final BinaryExpression.Operator POW
The result of the first operand raised to the power of the second.
-
PLUS
public static final BinaryExpression.Operator PLUS
The result of the first operand added to the second (addition).
-
MINUS
public static final BinaryExpression.Operator MINUS
The result of the first operand minus the second (subtraction).
-
MULTIPLY
public static final BinaryExpression.Operator MULTIPLY
The result of the first operand multiplied by the second (multiplication).
-
DIVIDE
public static final BinaryExpression.Operator DIVIDE
The result of the first operand divided by the second (division).
-
-
Method Detail
-
values
public static BinaryExpression.Operator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BinaryExpression.Operator c : BinaryExpression.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryExpression.Operator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-