Package org.apache.lucene.search.spell
Class WordBreakSpellChecker.CombinationsThenFreqComparator
java.lang.Object
org.apache.lucene.search.spell.WordBreakSpellChecker.CombinationsThenFreqComparator
- All Implemented Interfaces:
Comparator<WordBreakSpellChecker.CombineSuggestionWrapper>
- Enclosing class:
- WordBreakSpellChecker
private static class WordBreakSpellChecker.CombinationsThenFreqComparator
extends Object
implements Comparator<WordBreakSpellChecker.CombineSuggestionWrapper>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(WordBreakSpellChecker.CombineSuggestionWrapper o1, WordBreakSpellChecker.CombineSuggestionWrapper o2) 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
-
Constructor Details
-
CombinationsThenFreqComparator
private CombinationsThenFreqComparator()
-
-
Method Details
-
compare
public int compare(WordBreakSpellChecker.CombineSuggestionWrapper o1, WordBreakSpellChecker.CombineSuggestionWrapper o2) - Specified by:
compare
in interfaceComparator<WordBreakSpellChecker.CombineSuggestionWrapper>
-