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