public abstract class RelationalOperator extends Object implements BinaryOperator
Constructor and Description |
---|
RelationalOperator()
Creates a new relational operator.
|
Modifier and Type | Method and Description |
---|---|
Value |
applyTo(Expression leftOperand,
Expression rightOperand)
Applies the operator to the given operands and returns the result.
|
abstract <T> boolean |
compare(Comparable<T> left,
T right)
Applies the operator to the given operands and returns a boolean value.
|
Value.Type |
getOperandValueType()
Returns the type of value that the operator's operands can have.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier
public RelationalOperator()
public final Value applyTo(Expression leftOperand, Expression rightOperand) throws IllegalValueTypeException
BinaryOperator
applyTo
in interface BinaryOperator
IllegalValueTypeException
- if the value of an operand is not of the expected typepublic abstract <T> boolean compare(Comparable<T> left, T right)
left
- the value of the left operandright
- the value of the right operandpublic Value.Type getOperandValueType()
Operator
getOperandValueType
in interface Operator