If in success state, runs the success-runnable.
If in error state, applies the error value to the given consumer,
otherwise does nothing.
VoidResult.error(E value)
Returns a VoidResult
in error state containing the given
non-null
value as error value.
If in success state, returns the VoidResult
from applying the
given mapping function to the boolean success value, otherwise returns a
VoidResult
containing the error value of this
BooleanResult
.
If in success state, returns the VoidResult
from applying the
given mapping function to the optional success value, otherwise returns a
VoidResult
containing the error value of this
OptionalResult
.
If in success state, returns the VoidResult
from applying the
given mapping function to the success value, otherwise returns a
VoidResult
containing the error value of this Result
.
If in error state, returns the VoidResult
from applying the given
mapping function to the error value, otherwise returns the unaltered
VoidResult
in success state.
If in success state, returns the VoidResult
provided by the given
supplier, otherwise returns the unaltered VoidResult
in error
state.
If in success state, runs the given supplier.
Handle the given CheckedRunnable
.
Handle the given CheckedRunnable
.
If in error state, returns a VoidResult
containing the result of
applying the given mapping function to the error value, otherwise returns
the unaltered VoidResult
in success state.
If in error state, returns a new VoidResult
in success state,
otherwise returns the unaltered VoidResult
in success state.
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 VoidResult
in success state.
Transforms this BooleanResult
to a VoidResult
.
Transforms this OptionalResult
to a VoidResult
.
Transforms this Result
to a VoidResult
.
If in success state, applies the boolean success value to the given
function.
If in success state, applies the optional success value to the given
function.
If in success state, applies the success value to the given function.
If in success state, applies the success value to the given function.
If in success state, returns the VoidResult
from applying the
given mapping function to the boolean success value, otherwise returns a
VoidResult
containing the error value of this
BooleanResult
.
If in success state, returns the VoidResult
from applying the
given mapping function to the optional success value, otherwise returns a
VoidResult
containing the error value of this
OptionalResult
.
If in success state, returns the VoidResult
from applying the
given mapping function to the success value, otherwise returns a
VoidResult
containing the error value of this Result
.
If in error state, returns the VoidResult
from applying the given
mapping function to the error value, otherwise returns the unaltered
VoidResult
in success state.
If in success state, returns the VoidResult
provided by the given
supplier, otherwise returns the unaltered VoidResult
in error
state.
If in success state, runs the given supplier.
If in success state, runs the given supplier.
If in success state, runs the given supplier.
If in success state, runs the given supplier.
If in success state with a success value, runs the given supplier.
If in success state, verifies the success value of this
BooleanResult
by mapping it to a VoidResult
.
If in success state, verifies the success value of this
OptionalResult
by mapping it to a VoidResult
.
If in success state, verifies the success value of this Result
by
mapping it to a VoidResult
.
If in non-empty success state, verifies the success value of this
OptionalResult
by mapping it to a VoidResult
.
runAlways(java.lang.Runnable)
instead for clarity