-
static <Success,
Failure>
Result<Success,Failure>
Creates a new failure result.
<NewSuccess,
NewFailure>
Result<NewSuccess,NewFailure>
Flat maps both the success and failure values to new values using the given mapper functions,
depending on whether this is a success or failure result.
Flat maps the failure value to a new failure <NewFailure> using the given mapper function,
if this is a failure result.
Flat maps the success value to a new Success <NewSuccess> the given mapper function,
if this is a success result.
If this is a failure result, applies the given consumer to the failure value.
If this is a success result, applies the given consumer to the success value.
<NewSuccess,
NewFailure>
Result<NewSuccess,NewFailure>
Maps both the success and failure values to new values using the given mapper functions,
depending on whether this is a success or failure result.
Maps the failure value to a new failure value of type <NewFailure> using the given mapper function, if this is a failure result.
Maps the success value to a new success value of type <NewSuccess> using the given mapper function, if this is a success result.
static <Success,
Failure>
Result<Success,Failure>
Creates a new success result.
<NewSuccess,
NewFailure>
Result<NewSuccess,NewFailure>
Flat maps both the success and failure values to new values using the given mapper functions,
depending on whether this is a success or failure result.
Flat maps the failure value to a new failure <NewFailure> using the given mapper function,
if this is a failure result.
Flat maps the success value to a new Success <NewSuccess> the given mapper function,
if this is a success result.