Class SortByRelevanceComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<Completion>

    public class SortByRelevanceComparator
    extends java.lang.Object
    implements java.util.Comparator<Completion>, java.io.Serializable
    Compares two Completions by their relevance before sorting them lexicographically.
    Version:
    1.0
    See Also:
    Serialized Form
    • 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
    • Constructor Detail

      • SortByRelevanceComparator

        public SortByRelevanceComparator()