Class ITaskQueue.RunnableWithPriority

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing interface:
    ITaskQueue<T,​F>

    public static final class ITaskQueue.RunnableWithPriority
    extends java.lang.Object
    implements java.lang.Runnable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int priority  
      private java.lang.Runnable task  
    • Constructor Summary

      Constructors 
      Constructor Description
      RunnableWithPriority​(int p_i50963_1_, java.lang.Runnable p_i50963_2_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPriority()  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • priority

        private final int priority
      • task

        private final java.lang.Runnable task
    • Constructor Detail

      • RunnableWithPriority

        public RunnableWithPriority​(int p_i50963_1_,
                                    java.lang.Runnable p_i50963_2_)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • getPriority

        public int getPriority()