|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.search.didyoumean.lucene.comparators.FrequencyComparingSuggestionComparator
public class FrequencyComparingSuggestionComparator
Compares suggestions by the frequency that they occur in the user index.
Specifically, it compares them on Suggestion.getFreq()
.
Suggestions with higher frequencies come before suggestions with lower frequencies.
Constructor Summary | |
---|---|
FrequencyComparingSuggestionComparator()
|
Method Summary | |
---|---|
int |
compare(Suggestion s1,
Suggestion s2)
|
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 |
Constructor Detail |
---|
public FrequencyComparingSuggestionComparator()
Method Detail |
---|
public int compare(Suggestion s1, Suggestion s2)
compare
in interface java.util.Comparator<Suggestion>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |