| Package | Description |
|---|---|
| io.buybrain.util | |
| io.buybrain.util.function |
| Modifier and Type | Method and Description |
|---|---|
<R> Result<R,?> |
Result.andThen(ThrowingSupplier<Result<R,?>> op)
If the current value is OK, yield a new Result by calling a supplier.
|
<R> Result<R,?> |
Result.andThenTry(ThrowingSupplier<R> op)
If the current value is OK, yield a new Result by calling a supplier.
|
static <T> Retryer.SupplierRetryer<T> |
Retryer.of(ThrowingSupplier<T> job) |
Result<T,?> |
Result.orElse(ThrowingSupplier<Result<T,?>> op) |
Result<T,?> |
Result.orElseTry(ThrowingSupplier<T> op) |
static <T> T |
Exceptions.rethrowR(ThrowingSupplier<T> supplier)
Try to get a value from the given supplier, rethrowing any exception wrapped in a RuntimeException
|
static <T> Result<T,?> |
Result.trying(ThrowingSupplier<T> op) |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingSupplier<R> |
ThrowingFunction.bind(T val) |
Copyright © 2017. All rights reserved.