-
-
Constructor Summary
Constructors Constructor Description Try.Success(S value)
-
Method Summary
Modifier and Type Method Description BooleangetIsSuccess()BooleangetIsFailure()final SgetValue()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.Success
Try.Success(S value)
-
-
Method Detail
-
getIsSuccess
Boolean getIsSuccess()
-
getIsFailure
Boolean getIsFailure()
-
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.
-
-
-
-