Uses of Interface
aQute.bnd.result.Result
Packages that use Result
-
Uses of Result in aQute.bnd.result
Methods in aQute.bnd.result that return ResultModifier and TypeMethodDescription<U> Result
<U> Result.asError()
If anErr
, return this coerced to the desired generic type.static <V> Result
<V> Result.err
(CharSequence error) Returns anErr
containing the specifiederror
.static <V> Result
<V> <U> Result
<U> Result.flatMap
(aQute.bnd.exceptions.FunctionWithException<? super V, ? extends Result<? extends U>> mapper) FlatMap the contained value if this is anOk
value.<U> Result
<U> Map the contained value if this is anOk
value.Result.mapErr
(aQute.bnd.exceptions.FunctionWithException<? super String, ? extends CharSequence> mapper) Map the contained error if this is anErr
value.static <V> Result
<V> Result.of
(V value, CharSequence error) Returns anOk
if thevalue
parameter is non-null
or anErr
otherwise.static <V> Result
<V> Result.ok
(V value) Returns anOk
containing the specifiedvalue
.Recover the contained error if this is anErr
value.Result.recoverWith
(aQute.bnd.exceptions.FunctionWithException<? super String, ? extends Result<? extends V>> recover) Recover the contained error if this is anErr
value.Method parameters in aQute.bnd.result with type arguments of type ResultModifier and TypeMethodDescription<U> Result
<U> Result.flatMap
(aQute.bnd.exceptions.FunctionWithException<? super V, ? extends Result<? extends U>> mapper) FlatMap the contained value if this is anOk
value.Result.recoverWith
(aQute.bnd.exceptions.FunctionWithException<? super String, ? extends Result<? extends V>> recover) Recover the contained error if this is anErr
value.