Package org.apache.felix.gogo.runtime
Class Expression.Comparator
java.lang.Object
org.apache.felix.gogo.runtime.Expression.Operator
org.apache.felix.gogo.runtime.Expression.Comparator
- Enclosing class:
Expression
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
compare
(Comparable v1, Comparable v2) This method actually implements the comparison.eval
(BigDecimal v1, BigDecimal v2) Implementation for this operator.Methods inherited from class org.apache.felix.gogo.runtime.Expression.Operator
eval, getOper, getPrecedence, isLeftAssoc, toString
-
Constructor Details
-
Comparator
-
-
Method Details
-
eval
Description copied from class:Expression.Operator
Implementation for this operator.- Specified by:
eval
in classExpression.Operator
- Parameters:
v1
- Operand 1.v2
- Operand 2.- Returns:
- The result of the operation.
-
eval
- Overrides:
eval
in classExpression.Operator
-
compare
This method actually implements the comparison. It will be called with either 2 BigIntegers or 2 Strings.- Parameters:
v1
- Operand 1.v2
- Operand 2.- Returns:
- The result of the comparison.
-