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
Completions by their relevance before
sorting them lexicographically.- Version:
- 1.0
- Author:
- Robert Futrell
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SortByRelevanceComparator
public SortByRelevanceComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Completion>
-