<U> Result<U> |
Result.asError() |
If an Err , return this coerced to the desired generic type.
|
static <V> Result<V> |
Result.err(java.lang.CharSequence error) |
Returns an Err containing the specified error .
|
static <V> Result<V> |
Result.err(java.lang.String format,
java.lang.Object... args) |
|
<U> Result<U> |
Result.flatMap(aQute.bnd.exceptions.FunctionWithException<? super V,? extends Result<? extends U>> mapper) |
FlatMap the contained value if this is an Ok value.
|
<U> Result<U> |
Result.map(aQute.bnd.exceptions.FunctionWithException<? super V,? extends U> mapper) |
Map the contained value if this is an Ok value.
|
Result<V> |
Result.mapErr(aQute.bnd.exceptions.FunctionWithException<? super java.lang.String,? extends java.lang.CharSequence> mapper) |
Map the contained error if this is an Err value.
|
static <V> Result<V> |
Result.of(V value,
java.lang.CharSequence error) |
Returns an Ok if the value parameter is non-null
or an Err otherwise.
|
static <V> Result<V> |
Result.ok(V value) |
Returns an Ok containing the specified value .
|
Result<V> |
Result.recover(aQute.bnd.exceptions.FunctionWithException<? super java.lang.String,? extends V> recover) |
Recover the contained error if this is an Err value.
|
Result<V> |
Result.recoverWith(aQute.bnd.exceptions.FunctionWithException<? super java.lang.String,? extends Result<? extends V>> recover) |
Recover the contained error if this is an Err value.
|