OperatorEvaluator

public enum OperatorEvaluator

A boolean non-typed comparison operation on two given instances.

The equality checks support all types. The check is performed via the equals method. A null reference is equal to another null reference.

Order-based comparison supports only Comparable types and com.google.protobuf.Timestamp. When trying to compare unsupported types, an UnsupportedOperationException is thrown.

It is required that the runtime Java class of the two compared values is the same. Otherwise, an IllegalArgumentException is thrown.

See also

io.spine.client.CompositeFilter.CompositeOperator

for the comparison strategies

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public static boolean eval<T>(T left, Operator operator, T right)
Evaluates the given expression.
Link copied to clipboard
public static OperatorEvaluator 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.)

Link copied to clipboard
public static Array<OperatorEvaluator> values()

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.