public class SuggestWordFrequencyComparator extends java.lang.Object implements java.util.Comparator<SuggestWord>
Constructor and Description |
---|
SuggestWordFrequencyComparator()
Creates a new comparator that will compare by
SuggestWord.freq ,
then by SuggestWord.score , then by SuggestWord.string . |
Modifier and Type | Method and Description |
---|---|
int |
compare(SuggestWord first,
SuggestWord second) |
public SuggestWordFrequencyComparator()
SuggestWord.freq
,
then by SuggestWord.score
, then by SuggestWord.string
.public int compare(SuggestWord first, SuggestWord second)
compare
in interface java.util.Comparator<SuggestWord>
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.