public interface Result<T>
Modifier and Type | Method and Description |
---|---|
T |
getData()
Returns the associated data if the result is a success, `null` otherwise.
|
SparkError |
getError()
Returns the associated error value if the result is a failure, null otherwise.
|
boolean |
isSuccessful()
Returns true if the result is a success, false otherwise
|
boolean isSuccessful()
@Nullable SparkError getError()
@Nullable T getData()