Uses of Interface
aQute.bnd.result.Result

Packages that use Result
Package
Description
 
  • Uses of Result in aQute.bnd.result

    Methods in aQute.bnd.result that return Result
    Modifier and Type
    Method
    Description
    <U> Result<U>
    Result.asError()
    If an Err, return this coerced to the desired generic type.
    static <V> Result<V>
    Result.err(CharSequence error)
    Returns an Err containing the specified error.
    static <V> Result<V>
    Result.err(String format, 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.mapErr(aQute.bnd.exceptions.FunctionWithException<? super String,? extends CharSequence> mapper)
    Map the contained error if this is an Err value.
    static <V> Result<V>
    Result.of(V value, 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.recover(aQute.bnd.exceptions.FunctionWithException<? super String,? extends V> recover)
    Recover the contained error if this is an Err value.
    Result.recoverWith(aQute.bnd.exceptions.FunctionWithException<? super String,? extends Result<? extends V>> recover)
    Recover the contained error if this is an Err value.
    Method parameters in aQute.bnd.result with type arguments of type Result
    Modifier and Type
    Method
    Description
    <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.
    Result.recoverWith(aQute.bnd.exceptions.FunctionWithException<? super String,? extends Result<? extends V>> recover)
    Recover the contained error if this is an Err value.