If in success state, applies the success value to the given consumer,
otherwise does nothing.
If in success state, applies the success value to the given value
consumer.
If in error state, applies the error value to the given consumer,
otherwise does nothing.
Returns a Result
in error state containing the given
non-null
value as error value.
If in success state, applies the success value to the given function.
If in success state, returns the Result
from applying the given
mapping function to the boolean success value, otherwise returns a
Result
containing the error value of this BooleanResult
.
If in success state, returns the Result
from applying the given
mapping function to the optional success value, otherwise returns a
Result
containing the error value of this OptionalResult
.
If in success state, returns the Result
from applying the given
mapping function to the success value, otherwise returns the unaltered
Result
in error state.
If in error state, returns the Result
from applying the given
mapping function to the error value, otherwise returns the unaltered
Result
in success state.
If in success state, returns the Result
provided by the given
supplier, otherwise returns a Result
containing the error value
of this VoidResult
.
If in empty success state, returns the Result
from applying the
given supplier, otherwise returns a Result
with the existing
success value or error value.
If in success state, runs the given supplier.
Handle the given Callable
.
Handle the given Callable
.
If in success state, returns a Result
containing the result of
applying the given mapping function to the boolean success value,
otherwise returns a Result
containing the error value of this
BooleanResult
.
If in success state, returns a Result
containing the result of
applying the given mapping function to the optional success value of this
OptionalResult
, otherwise returns a Result
containing the
error value of this OptionalResult
.
If in success state, returns a Result
containing the result of
applying the given mapping function to the success value, otherwise
returns the unaltered Result
in error state.
If in error state, returns a Result
containing the result of
applying the given mapping function to the error value, otherwise
returns the unaltered Result
in success state.
If in error state, returns a Result
with the success value from
applying the given mapping function to the error value, otherwise returns
the unaltered Result
in success state.
If in success state, returns a Result
containing the value
provided by the given supplier, otherwise returns a Result
containing the error value of this VoidResult
.
Runs the given runnable, no matter the state.
If in success state, runs the given success runnable.
If in error state, runs the given runnable, otherwise does nothing.
If in success state, runs the given runnable, otherwise does nothing.
Returns a Result
in success state containing the given
non-null
value as success value.
Transforms this OptionalResult
to a Result
.
If in success state, verifies the success value of this Result
by
mapping it to a VoidResult
.
If in success state, verifies the success value of this Result
by
testing it with the given predicate.
If in success state, returns the Result
from applying the given
mapping function to the boolean success value, otherwise returns a
Result
containing the error value of this BooleanResult
.
If in success state, returns the Result
from applying the given
mapping function to the optional success value, otherwise returns a
Result
containing the error value of this OptionalResult
.
If in success state, returns the Result
from applying the given
mapping function to the success value, otherwise returns the unaltered
Result
in error state.
If in success state with a success value, returns an
OptionalResult
from applying the given mapping function to the
success value, otherwise returns the unaltered OptionalResult
which may be empty or in error state.
If in error state, returns the Result
from applying the given
mapping function to the error value, otherwise returns the unaltered
Result
in success state.
If in success state, returns the Result
provided by the given
supplier, otherwise returns a Result
containing the error value
of this VoidResult
.
If in empty success state, returns the Result
from applying the
given supplier, otherwise returns a Result
with the existing
success value or error value.
runAlways(java.lang.Runnable)
instead for clarity