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