Package 

Class Try.Failure

    • Constructor Summary

      Constructors 
      Constructor Description
      Try.Failure(F value)
    • Method Summary

      Modifier and Type Method Description
      Boolean getIsSuccess()
      Boolean getIsFailure()
      final F getException()
      final F getValue()
      S getOrNull() Returns the encapsulated value if this instance represents success or null if it is failure.
      F failureOrNull() Returns the encapsulated Throwable exception if this instance represents failure or null if it is success.
      • Methods inherited from class org.readium.r2.shared.util.Try.Failure

        fold, map, mapFailure, onFailure, onSuccess
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait