| 程序包 | 说明 |
|---|---|
| xdean.jex.util.function | |
| xdean.jex.util.lang | |
| xdean.jex.util.task | |
| xdean.jex.util.task.tryto |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,E extends Throwable,EE extends Throwable> |
FunctionAdapter.supplierToRunnable(SupplierThrow<T,E> s,
ConsumerThrow<RunnableThrow<E>,EE> c) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,E extends Exception> |
ExceptionUtil.throwToReturn(SupplierThrow<T,E> task) |
static <T> T |
ExceptionUtil.uncatch(SupplierThrow<T,?> task) |
static <T> T |
ExceptionUtil.uncheck(SupplierThrow<T,?> task) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
TaskUtil.firstSuccess(SupplierThrow<T,?>... tasks)
Return the first NonNull result of these tasks
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Try<T> |
Try.to(SupplierThrow<T,Exception> code) |
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.