| 程序包 | 说明 |
|---|---|
| xdean.jex.util | |
| xdean.jex.util.function | |
| xdean.jex.util.lang | |
| xdean.jex.util.task | |
| xdean.jex.util.task.tryto |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,E extends Throwable> |
OptionalUtil.ifEmpty(Optional<T> o,
RunnableThrow<E> r) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,E extends Throwable,EE extends Throwable> |
FunctionAdapter.supplierToRunnable(SupplierThrow<T,E> s,
ConsumerThrow<RunnableThrow<E>,EE> c) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E extends Throwable> |
ExceptionUtil.throwToReturn(RunnableThrow<E> task) |
static boolean |
ExceptionUtil.uncatch(RunnableThrow<?> task) |
static void |
ExceptionUtil.uncheck(RunnableThrow<?> task) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Throwable> |
TaskUtil.firstFail(RunnableThrow<T>... tasks)
Run the given tasks until any exception happen
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Try<Void> |
Try.to(RunnableThrow<Exception> code) |
static Try<Void> |
Try.to(RunnableThrow<Exception> code,
RunnableThrow<Exception> onFinally) |
static Try<Void> |
Try.to(RunnableThrow<Exception> code,
RunnableThrow<Exception> onFinally) |
static <T> Try<T> |
Try.to(SupplierThrow<T,Exception> code,
RunnableThrow<Exception> onFinally)
Constructs a `Try` using a code as a supplier.
|
Copyright © 2017. All rights reserved.