Package org.apache.lucene.search.spell
Class SuggestWordScoreComparator
- java.lang.Object
-
- org.apache.lucene.search.spell.SuggestWordScoreComparator
-
- All Implemented Interfaces:
java.util.Comparator<SuggestWord>
public class SuggestWordScoreComparator extends java.lang.Object implements java.util.Comparator<SuggestWord>
Score first, then frequency
-
-
Constructor Summary
Constructors Constructor Description SuggestWordScoreComparator()Creates a new comparator that will compare bySuggestWord.score, then bySuggestWord.freq, then bySuggestWord.string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(SuggestWord first, SuggestWord second)
-
-
-
Constructor Detail
-
SuggestWordScoreComparator
public SuggestWordScoreComparator()
Creates a new comparator that will compare bySuggestWord.score, then bySuggestWord.freq, then bySuggestWord.string.
-
-
Method Detail
-
compare
public int compare(SuggestWord first, SuggestWord second)
- Specified by:
comparein interfacejava.util.Comparator<SuggestWord>
-
-