| Package | Description |
|---|---|
| io.buybrain.util | |
| io.buybrain.util.function |
| Modifier and Type | Method and Description |
|---|---|
<R> Result<R,?> |
Result.andThen(ThrowingRunnable op)
If the current value is OK, call a runnable and return an empty OK result.
|
<R> Result<R,?> |
Result.andThenTry(ThrowingRunnable op)
If the current value is OK, call a runnable and return an empty OK result.
|
static Retryer.RunnableRetryer |
Retryer.of(ThrowingRunnable job) |
Result<T,?> |
Result.orElse(ThrowingRunnable op) |
Result<T,?> |
Result.orElseTry(ThrowingRunnable op) |
static void |
Exceptions.rethrow(ThrowingRunnable runnable)
Try to run a runnable, rethrowing any exception wrapped in a RuntimeException
|
static <T> Result<T,?> |
Result.trying(ThrowingRunnable op) |
| Modifier and Type | Method and Description |
|---|---|
default ThrowingRunnable |
ThrowingConsumer.bind(T val) |
Copyright © 2017. All rights reserved.