Package org.fife.ui.autocomplete
Class SortByRelevanceComparator
- java.lang.Object
-
- org.fife.ui.autocomplete.SortByRelevanceComparator
-
- All Implemented Interfaces:
Comparator<Completion>
public class SortByRelevanceComparator extends Object implements Comparator<Completion>
Compares twoCompletion
s by their relevance before sorting them lexicographically.- Version:
- 1.0
- Author:
- Robert Futrell
-
-
Constructor Summary
Constructors Constructor Description SortByRelevanceComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Completion c1, Completion c2)
-
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
-
-
-
-
Method Detail
-
compare
public int compare(Completion c1, Completion c2)
- Specified by:
compare
in interfaceComparator<Completion>
-
-