Enum UnaryExpression.Operator
- java.lang.Object
-
- java.lang.Enum<UnaryExpression.Operator>
-
- com.speedment.runtime.compute.expression.UnaryExpression.Operator
-
- All Implemented Interfaces:
Serializable,Comparable<UnaryExpression.Operator>
- Enclosing interface:
- UnaryExpression<T,INNER extends Expression<T>>
public static enum UnaryExpression.Operator extends Enum<UnaryExpression.Operator>
The unary expression operator type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSThis expression is the absolute value of the result from the inner expression.CASTThis expression is the result of the inner expression casted to a different typeNEGATEThis expression is the negation of the inner expression.SIGNThe result of this expression is0if the result of the inner expression is0,1of the inner returned something positive and-1if the inner returned something negative.SQRTThe result of this expression is the positive square root of the result of the inner expression.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnaryExpression.OperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static UnaryExpression.Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABS
public static final UnaryExpression.Operator ABS
This expression is the absolute value of the result from the inner expression. That is, the negation sign is ignored, returning only positive values.
-
CAST
public static final UnaryExpression.Operator CAST
This expression is the result of the inner expression casted to a different type
-
NEGATE
public static final UnaryExpression.Operator NEGATE
This expression is the negation of the inner expression. That is, the negation sign is flipped.
-
SIGN
public static final UnaryExpression.Operator SIGN
The result of this expression is0if the result of the inner expression is0,1of the inner returned something positive and-1if the inner returned something negative.
-
SQRT
public static final UnaryExpression.Operator SQRT
The result of this expression is the positive square root of the result of the inner expression.
-
-
Method Detail
-
values
public static UnaryExpression.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 (UnaryExpression.Operator c : UnaryExpression.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 UnaryExpression.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
-
-