java.lang.Object
de.grogra.pf.ui.autocomplete.impl.SortByRelevanceComparator
- All Implemented Interfaces:
Serializable
,Comparator<Completion>
public class SortByRelevanceComparator
extends Object
implements Comparator<Completion>, Serializable
Compares two
Completion
s by their relevance before
sorting them lexicographically.- Version:
- 1.0
- Author:
- Robert Futrell
- See Also:
-
Constructor Summary
-
Method Summary
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SortByRelevanceComparator
public SortByRelevanceComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Completion>
-