public final class SuggestWordQueue
extends <any>
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<SuggestWord> |
DEFAULT_COMPARATOR
Default comparator: score then frequency.
|
| Constructor and Description |
|---|
SuggestWordQueue(int size)
Use the
DEFAULT_COMPARATOR |
SuggestWordQueue(int size,
java.util.Comparator<SuggestWord> comparator)
Specify the size of the queue and the comparator to use for sorting.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
lessThan(SuggestWord wa,
SuggestWord wb) |
public static final java.util.Comparator<SuggestWord> DEFAULT_COMPARATOR
SuggestWordScoreComparatorpublic SuggestWordQueue(int size)
DEFAULT_COMPARATORsize - The size of the queuepublic SuggestWordQueue(int size,
java.util.Comparator<SuggestWord> comparator)
size - The sizecomparator - The comparator.protected final boolean lessThan(SuggestWord wa, SuggestWord wb)
Data In Motion GmbH all rights reserved