-
If this result is
Ok
, change the generic type for
Err
.
If this result is
Ok
, change the generic type for
Err
.
If this result is
Ok
, change the generic type for
Err
.
If this result is
Err
, change the generic type for
Ok
.
If this result is
Err
, change the generic type for
Ok
.
If this result is
Err
, change the generic type for
Ok
.
Err.and(java.util.function.Supplier<Result<U,E>> nextSupplier)
Returns the current
Result
if it is
Err
, and produces the next result (given by the
argument) otherwise.
Returns the current
Result
if it is
Err
, and the next one otherwise.
Ok.and(java.util.function.Supplier<Result<U,E>> nextSupplier)
Returns the current
Result
if it is
Err
, and produces the next result (given by the
argument) otherwise.
Returns the current
Result
if it is
Err
, and the next one otherwise.
Result.and(java.util.function.Supplier<Result<U,E>> nextSupplier)
Returns the current
Result
if it is
Err
, and produces the next result (given by the
argument) otherwise.
Returns the current
Result
if it is
Err
, and the next one otherwise.
Attempt to run the given operation.
Map the
Ok
value to a new
Result
value, flattening the two results to a single one.
Map the
Ok
value to a new
Result
value, flattening the two results to a single one.
Map the
Ok
value to a new
Result
value, flattening the two results to a single one.
Map the
Err
value to a new
Result
value, flattening the two results to a single one.
Map the
Err
value to a new
Result
value, flattening the two results to a single one.
Map the
Err
value to a new
Result
value, flattening the two results to a single one.
Create a
Result
from a nullable reference.
Err.map(java.util.function.Function<T,U> converter)
Map the
Ok
value to a new value of a different type.
Ok.map(java.util.function.Function<T,U> converter)
Map the
Ok
value to a new value of a different type.
Result.map(java.util.function.Function<T,U> converter)
Map the
Ok
value to a new value of a different type.
Err.mapErr(java.util.function.Function<E,F> converter)
Map the
Err
value to a new value of a different type.
Ok.mapErr(java.util.function.Function<E,F> converter)
Map the
Err
value to a new value of a different type.
Result.mapErr(java.util.function.Function<E,F> converter)
Map the
Err
value to a new value of a different type.
Err.or(java.util.function.Supplier<Result<T,F>> nextSupplier)
Returns the current
Result
if it is
Ok
, and produces the next result (given by the
argument) otherwise.
Returns the current
Result
if it is
Ok
, and the next one otherwise.
Ok.or(java.util.function.Supplier<Result<T,F>> nextSupplier)
Returns the current
Result
if it is
Ok
, and produces the next result (given by the
argument) otherwise.
Returns the current
Result
if it is
Ok
, and the next one otherwise.
Result.or(java.util.function.Supplier<Result<T,F>> nextSupplier)
Returns the current
Result
if it is
Ok
, and produces the next result (given by the
argument) otherwise.
Returns the current
Result
if it is
Ok
, and the next one otherwise.
Given a list of results, if it contains an error, return the first one.
Given a set of results, if it contains any errors, return the 'first' one ('first' may be arbitrary
for many
Set
implementation).
Returns the current
Result
if it is
Err
, and the next one otherwise.
Returns the current
Result
if it is
Err
, and the next one otherwise.
Returns the current
Result
if it is
Err
, and the next one otherwise.
Returns the current
Result
if it is
Ok
, and the next one otherwise.
Returns the current
Result
if it is
Ok
, and the next one otherwise.
Returns the current
Result
if it is
Ok
, and the next one otherwise.
Err.and(java.util.function.Supplier<Result<U,E>> nextSupplier)
Returns the current
Result
if it is
Err
, and produces the next result (given by the
argument) otherwise.
Ok.and(java.util.function.Supplier<Result<U,E>> nextSupplier)
Returns the current
Result
if it is
Err
, and produces the next result (given by the
argument) otherwise.
Result.and(java.util.function.Supplier<Result<U,E>> nextSupplier)
Returns the current
Result
if it is
Err
, and produces the next result (given by the
argument) otherwise.
Map the
Ok
value to a new
Result
value, flattening the two results to a single one.
Map the
Ok
value to a new
Result
value, flattening the two results to a single one.
Map the
Ok
value to a new
Result
value, flattening the two results to a single one.
Map the
Err
value to a new
Result
value, flattening the two results to a single one.
Map the
Err
value to a new
Result
value, flattening the two results to a single one.
Map the
Err
value to a new
Result
value, flattening the two results to a single one.
Err.or(java.util.function.Supplier<Result<T,F>> nextSupplier)
Returns the current
Result
if it is
Ok
, and produces the next result (given by the
argument) otherwise.
Ok.or(java.util.function.Supplier<Result<T,F>> nextSupplier)
Returns the current
Result
if it is
Ok
, and produces the next result (given by the
argument) otherwise.
Result.or(java.util.function.Supplier<Result<T,F>> nextSupplier)
Returns the current
Result
if it is
Ok
, and produces the next result (given by the
argument) otherwise.
Given a list of results, if it contains an error, return the first one.
Given a set of results, if it contains any errors, return the 'first' one ('first' may be arbitrary
for many
Set
implementation).
-
java.util.function.BiConsumer<nl.markv.result.collect.ResultBuilder<List<T>,E>,Result<T,E>>
java.util.function.BiConsumer<nl.markv.result.collect.ResultBuilder<Set<T>,E>,Result<T,E>>
java.util.function.Function<nl.markv.result.collect.ResultBuilder<List<T>,E>,Result<List<T>,E>>
java.util.function.Function<nl.markv.result.collect.ResultBuilder<Set<T>,E>,Result<Set<T>,E>>