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 anErrcontaining 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 anOkvalue.<U> Result<U> Map the contained value if this is anOkvalue.Result.mapErr(aQute.bnd.exceptions.FunctionWithException<? super String, ? extends CharSequence> mapper) Map the contained error if this is anErrvalue.static <V> Result<V> Result.of(V value, CharSequence error) Returns anOkif thevalueparameter is non-nullor anErrotherwise.static <V> Result<V> Result.ok(V value) Returns anOkcontaining the specifiedvalue.Recover the contained error if this is anErrvalue.Result.recoverWith(aQute.bnd.exceptions.FunctionWithException<? super String, ? extends Result<? extends V>> recover) Recover the contained error if this is anErrvalue.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 anOkvalue.Result.recoverWith(aQute.bnd.exceptions.FunctionWithException<? super String, ? extends Result<? extends V>> recover) Recover the contained error if this is anErrvalue.