-
-
Constructor Summary
Constructors Constructor Description Try.Failure(F value)
-
Method Summary
Modifier and Type Method Description BooleangetIsSuccess()BooleangetIsFailure()final FgetException()final FgetValue()SgetOrNull()Returns the encapsulated value if this instance represents success or null if it is failure. FfailureOrNull()Returns the encapsulated Throwable exception if this instance represents failure or null if it is success. -
-
Constructor Detail
-
Try.Failure
Try.Failure(F value)
-
-
Method Detail
-
getIsSuccess
Boolean getIsSuccess()
-
getIsFailure
Boolean getIsFailure()
-
getException
final F getException()
-
getOrNull
S getOrNull()
Returns the encapsulated value if this instance represents success or null if it is failure.
-
failureOrNull
F failureOrNull()
Returns the encapsulated Throwable exception if this instance represents failure or null if it is success.
-
-
-
-