public class ExpressionComparator<T extends Comparable<T>> extends FacetResultsComparator
resultMult
Constructor and Description |
---|
ExpressionComparator(String expression)
Create an entry comparator comparing the given expression.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(SortableFacet.FacetBucket b1,
SortableFacet.FacetBucket b2)
Compare one facet bucket to another.
|
setDirection
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 ExpressionComparator(String expression)
expression
- the name of the expression results to comparepublic int compare(SortableFacet.FacetBucket b1, SortableFacet.FacetBucket b2)
FacetResultsComparator
compare
in interface Comparator<SortableFacet.FacetBucket>
compare
in class FacetResultsComparator
b1
- the first bucket to compareb2
- the second bucket to compareCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.