public final class CompletionProposalComparator extends Object implements Comparator
Note: this comparator imposes orderings that are inconsistent with equals.
| Constructor and Description |
|---|
CompletionProposalComparator()
Creates a comparator that sorts by relevance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
void |
setOrderAlphabetically(boolean orderAlphabetically)
Sets the sort order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic CompletionProposalComparator()
public void setOrderAlphabetically(boolean orderAlphabetically)
false, i.e. order by
relevance.orderAlphabetically - true to order alphabetically,
false to order by relevancepublic int compare(Object o1, Object o2)
compare in interface ComparatorCopyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.