Class AbstractOrderCompleter.PrioComp

  • All Implemented Interfaces:
    java.util.Comparator<Completion>
    Enclosing class:
    AbstractOrderCompleter

    protected static class AbstractOrderCompleter.PrioComp
    extends java.lang.Object
    implements java.util.Comparator<Completion>
    Priority comparator for Completion objects
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected PrioComp()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Completion o1, Completion o2)
      Compares to Completions by priority.
      • 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

      • PrioComp

        protected PrioComp()
    • Method Detail

      • compare

        public int compare​(Completion o1,
                           Completion o2)
        Compares to Completions by priority.
        Specified by:
        compare in interface java.util.Comparator<Completion>