Class DeterministicScheduler.CallableRunnableAdapter<T>

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

    private final class DeterministicScheduler.CallableRunnableAdapter<T>
    extends java.lang.Object
    implements java.util.concurrent.Callable<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T result  
      private java.lang.Runnable runnable  
    • Constructor Summary

      Constructors 
      Constructor Description
      CallableRunnableAdapter​(java.lang.Runnable runnable, 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

      • runnable

        private final java.lang.Runnable runnable
      • result

        private final T result
    • Constructor Detail

      • CallableRunnableAdapter

        public CallableRunnableAdapter​(java.lang.Runnable runnable,
                                       T result)
    • Method Detail

      • toString

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

        public T call()
               throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable<T>
        Throws:
        java.lang.Exception