T
- The type of the successful result objectpublic interface Result<T>
Modifier and Type | Method and Description |
---|---|
Throwable |
getFailure()
The failure exception.
|
T |
getValue()
The result value.
|
T |
getValueOrThrow()
Returns the value if this is a success result, or throws the exception if it's a failure.
|
boolean |
isFailure()
True if this was a failure result.
|
boolean |
isSuccess()
True if this was a success result.
|
Throwable getFailure()
T getValue()
boolean isSuccess()
boolean isFailure()