public class ValueComparator extends Object implements Comparator<Value>
Value
instances.Constructor and Description |
---|
ValueComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Value[] a,
Value[] b) |
int |
compare(Value a,
Value b)
Compares two values.
|
boolean |
evaluate(String operator,
Value[] a,
Value[] b)
Evaluates the given QOM comparison operation with the given value arrays.
|
boolean |
evaluate(String operator,
Value a,
Value b)
Evaluates the given QOM comparison operation with the given values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Value a, Value b)
compare
in interface Comparator<Value>
public boolean evaluate(String operator, Value a, Value b)
operator
- QOM comparison operatora
- left valueb
- right valueCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.