Module org.apache.lucene.core
Package org.apache.lucene.util.fst
Class Util.TieBreakByInputComparator<T>
- java.lang.Object
-
- org.apache.lucene.util.fst.Util.TieBreakByInputComparator<T>
-
- All Implemented Interfaces:
java.util.Comparator<Util.FSTPath<T>>
- Enclosing class:
- Util
private static class Util.TieBreakByInputComparator<T> extends java.lang.Object implements java.util.Comparator<Util.FSTPath<T>>
Compares first by the provided comparator, and then tie breaks by path.input.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Comparator<T>
comparator
-
Constructor Summary
Constructors Constructor Description TieBreakByInputComparator(java.util.Comparator<T> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Util.FSTPath<T> a, Util.FSTPath<T> b)
-
-
-
Field Detail
-
comparator
private final java.util.Comparator<T> comparator
-
-
Constructor Detail
-
TieBreakByInputComparator
TieBreakByInputComparator(java.util.Comparator<T> comparator)
-
-
Method Detail
-
compare
public int compare(Util.FSTPath<T> a, Util.FSTPath<T> b)
- Specified by:
compare
in interfacejava.util.Comparator<T>
-
-