public abstract class Expression.Comparator extends Expression.Operator
| Constructor and Description |
|---|
Comparator(java.lang.String oper,
int precedence) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
compare(java.lang.Comparable v1,
java.lang.Comparable v2)
This method actually implements the comparison.
|
java.math.BigDecimal |
eval(java.math.BigDecimal v1,
java.math.BigDecimal v2)
Implementation for this operator.
|
java.lang.Object |
eval(java.lang.String v1,
java.lang.String v2) |
eval, getOper, getPrecedence, isLeftAssoc, toStringpublic java.math.BigDecimal eval(java.math.BigDecimal v1,
java.math.BigDecimal v2)
Expression.Operatoreval in class Expression.Operatorv1 - Operand 1.v2 - Operand 2.public java.lang.Object eval(java.lang.String v1,
java.lang.String v2)
eval in class Expression.Operatorpublic abstract boolean compare(java.lang.Comparable v1,
java.lang.Comparable v2)
v1 - Operand 1.v2 - Operand 2.Copyright © 2006-2016 The Apache Software Foundation. All Rights Reserved.