Enum Class Value.Operator
- All Implemented Interfaces:
Serializable, Comparable<Value.Operator>, Constable
- Enclosing interface:
Value
An operator of an
Value.Operation.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA three-way comparison of two numbers: negative, zero or positive.Strings joined in order, from concatenation with values that aren't constant.An element of an array: the array, then the index.The length of an array.Converts a floating point number to an integer, rounding towards zero. -
Method Summary
Modifier and TypeMethodDescriptionstatic Value.OperatorReturns the enum constant of this class with the specified name.static Value.Operator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD
-
SUBTRACT
-
MULTIPLY
-
DIVIDE
-
REMAINDER
-
NEGATE
-
AND
-
OR
-
XOR
-
SHIFT_LEFT
-
SHIFT_RIGHT
-
UNSIGNED_SHIFT_RIGHT
-
TRUNCATE
Converts a floating point number to an integer, rounding towards zero. -
COMPARE
A three-way comparison of two numbers: negative, zero or positive. -
EQUAL
-
NOT_EQUAL
-
LESS
-
LESS_OR_EQUAL
-
GREATER
-
GREATER_OR_EQUAL
-
LOGICAL_AND
-
LOGICAL_OR
-
LOGICAL_NOT
-
LENGTH
The length of an array. -
INDEX
An element of an array: the array, then the index. -
CONCAT
Strings joined in order, from concatenation with values that aren't constant.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-