Class PromiseTask.RunnableAdapter<T>

  • All Implemented Interfaces:
    java.util.concurrent.Callable<T>
    Enclosing class:
    PromiseTask<V>

    private static final class PromiseTask.RunnableAdapter<T>
    extends java.lang.Object
    implements java.util.concurrent.Callable<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T result  
      (package private) java.lang.Runnable task  
    • Constructor Summary

      Constructors 
      Constructor Description
      RunnableAdapter​(java.lang.Runnable task, T result)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T call()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • task

        final java.lang.Runnable task
      • result

        final T result
    • Constructor Detail

      • RunnableAdapter

        RunnableAdapter​(java.lang.Runnable task,
                        T result)
    • Method Detail

      • call

        public T call()
        Specified by:
        call in interface java.util.concurrent.Callable<T>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object