Class AwtValueRunnable<T>

  • All Implemented Interfaces:
    java.util.function.Consumer<T>
    Direct Known Subclasses:
    OneTimeConsumerRunnable

    public class AwtValueRunnable<T>
    extends java.lang.Object
    implements java.util.function.Consumer<T>
    Used to create a task that needs to potentially run on the AwtThread.
    • Constructor Summary

      Constructors 
      Constructor Description
      AwtValueRunnable​(boolean awtThread, java.util.function.Consumer<T> command)  
      AwtValueRunnable​(java.util.function.Consumer<T> command)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(T value)  
      java.util.function.Consumer<T> getCommand()  
      boolean isAwtThread()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • AwtValueRunnable

        public AwtValueRunnable​(java.util.function.Consumer<T> command)
      • AwtValueRunnable

        public AwtValueRunnable​(boolean awtThread,
                                java.util.function.Consumer<T> command)
    • Method Detail

      • getCommand

        public java.util.function.Consumer<T> getCommand()
      • isAwtThread

        public boolean isAwtThread()
      • accept

        public void accept​(T value)
        Specified by:
        accept in interface java.util.function.Consumer<T>