Class PromiseImpl.Result<P>

  • Enclosing class:
    PromiseImpl<T>

    static final class PromiseImpl.Result<P>
    extends java.lang.Object
    A holder of the result of a Promise.
    Since:
    1.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Throwable fail  
      (package private) P value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Result​(java.lang.Throwable fail)  
      Result​(P value)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • value

        P value
      • fail

        java.lang.Throwable fail
    • Constructor Detail

      • Result

        Result​(P value)
      • Result

        Result​(java.lang.Throwable fail)