Package org.apache.lucene.util.fst
Class Util.TieBreakByInputComparator<T>
java.lang.Object
org.apache.lucene.util.fst.Util.TieBreakByInputComparator<T>
- All Implemented Interfaces:
Comparator<Util.FSTPath<T>>
- Enclosing class:
- Util
private static class Util.TieBreakByInputComparator<T>
extends Object
implements Comparator<Util.FSTPath<T>>
Compares first by the provided comparator, and then tie breaks by path.input.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
comparator
-
-
Constructor Details
-
TieBreakByInputComparator
TieBreakByInputComparator(Comparator<T> comparator)
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-