|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.didyoumean.lucene.comparators.CostAndFreqComparingSuggestionComparator
public class CostAndFreqComparingSuggestionComparator
Compares suggestions by considering both cost and frequencies. Suggestions with lower cost and higher frequencies come before suggestions with higher cost and lower frequencies.
Constructor Summary | |
---|---|
CostAndFreqComparingSuggestionComparator()
|
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 CostAndFreqComparingSuggestionComparator()
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 |