Class Service.RunnableWrapperComparator

  • All Implemented Interfaces:
    java.util.Comparator<java.lang.Runnable>
    Enclosing class:
    Service<C extends ServiceConsumer>

    public static class Service.RunnableWrapperComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.Runnable>
    This comparator gets priority to service runnable.
    • Method Summary

      Modifier and Type Method Description
      int compare​(java.lang.Runnable o1, java.lang.Runnable o2)  
      • 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

      • RunnableWrapperComparator

        public RunnableWrapperComparator()
    • Method Detail

      • compare

        public int compare​(java.lang.Runnable o1,
                           java.lang.Runnable o2)
        Specified by:
        compare in interface java.util.Comparator<java.lang.Runnable>