public class SuggestWordScoreComparator extends Object implements Comparator<SuggestWord>
| Constructor and Description |
|---|
SuggestWordScoreComparator()
Creates a new comparator that will compare by
SuggestWord.score,
then by SuggestWord.freq, then by SuggestWord.string. |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(SuggestWord first,
SuggestWord second) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic SuggestWordScoreComparator()
SuggestWord.score,
then by SuggestWord.freq, then by SuggestWord.string.public int compare(SuggestWord first, SuggestWord second)
compare in interface Comparator<SuggestWord>Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.