public interface MutateResult
Modifier and Type | Field and Description |
---|---|
static MutateResult |
GENERIC_FAILURE
Instance of
MutateResult which always reports failure. |
static MutateResult |
GENERIC_SUCCESS
Instance of
MutateResult which always reports success. |
Modifier and Type | Method and Description |
---|---|
default boolean |
asBoolean()
Gets a boolean representation of the result.
|
default boolean |
wasFailure()
Gets if the operation which produced this result failed.
|
boolean |
wasSuccess()
Gets if the operation which produced this result completed successfully.
|
static final MutateResult GENERIC_SUCCESS
MutateResult
which always reports success.static final MutateResult GENERIC_FAILURE
MutateResult
which always reports failure.boolean wasSuccess()
default boolean wasFailure()
default boolean asBoolean()
A value of true
marks that the operation was a success
and a value of false
marks that the operation
was a failure
.