Class ValueComparator
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.join.ValueComparator
-
- All Implemented Interfaces:
Comparator<Value>
public class ValueComparator extends Object implements Comparator<Value>
Comparator forValueinstances.
-
-
Constructor Summary
Constructors Constructor Description ValueComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Value[] a, Value[] b)intcompare(Value a, Value b)Compares two values.booleanevaluate(String operator, Value[] a, Value[] b)Evaluates the given QOM comparison operation with the given value arrays.booleanevaluate(String operator, Value a, Value b)Evaluates the given QOM comparison operation with the given values.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Value a, Value b)
Compares two values.- Specified by:
comparein interfaceComparator<Value>
-
evaluate
public boolean evaluate(String operator, Value a, Value b)
Evaluates the given QOM comparison operation with the given values.- Parameters:
operator- QOM comparison operatora- left valueb- right value- Returns:
- result of the comparison
-
-