eval
Evaluates the given expression.
For example, if operands where 42
and 9
(exactly in that order) and the operator was GREATER_THAN, then this function could be expressed as 42 > 9
. The function returns the boolean
result of the evaluation.
Return
true
if the operands match the operator, false
otherwise
Parameters
left
the left operand
operator
the comparison operator
right
the right operand
<T>
the type of the compared values
Throws
if the operation is not supported for the given data types