| 程序包 | 说明 |
|---|---|
| xdean.jex.util.function | |
| xdean.jex.util.lang | |
| xdean.jex.util.task | |
| xdean.jex.util.task.tryto |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,E extends Exception,EE extends Exception> |
FunctionAdapter.supplierToRunnable(FuncE0<T,E> s,
ActionE1<ActionE0<E>,EE> c) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,E extends Exception> |
ExceptionUtil.throwToReturn(FuncE0<T,E> task) |
static <T> T |
ExceptionUtil.uncatch(FuncE0<T,?> task) |
static <T> T |
ExceptionUtil.uncheck(FuncE0<T,?> task) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Optional<T> |
TaskUtil.firstNonNull(FuncE0<T,?>... tasks)
Return the first non-null result of the given tasks or empty if all of them return null.
|
static <T> T |
TaskUtil.firstSuccess(FuncE0<T,?>... tasks)
Return the first result of these tasks
IGNORE EXCEPTIONS. |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Try<T> |
Try.to(FuncE0<T,Exception> code) |
static <T> Try<T> |
Try.to(FuncE0<T,Exception> code,
ActionE0<Exception> onFinally)
Constructs a `Try` using a code as a supplier.
|
Copyright © 2018. All rights reserved.