public class

FrequencyComparingSuggestionComparator

extends Object
implements Comparator<T>
java.lang.Object
   ↳ com.atlassian.confluence.search.didyoumean.lucene.comparators.FrequencyComparingSuggestionComparator

Class Overview

Compares suggestions by the frequency that they occur in the user index. Specifically, it compares them on getFreq(). Suggestions with higher frequencies come before suggestions with lower frequencies.

Summary

Public Constructors
FrequencyComparingSuggestionComparator()
Public Methods
int compare(Suggestion s1, Suggestion s2)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Comparator

Public Constructors

public FrequencyComparingSuggestionComparator ()

Public Methods

public int compare (Suggestion s1, Suggestion s2)