R - the result type of method callT - the type of the call "call" method possible occur exception@FunctionalInterface public static interface Throwables.ThrowingCallable<R,T extends Throwable>
| 限定符和类型 | 方法和说明 |
|---|---|
R |
call() |
static <R> R |
call(Throwables.ThrowingCallable<R,?> callable) |
static <R> R |
caught(Throwables.ThrowingCallable<R,?> callable,
R defaultValue,
Supplier<String> message) |
static <R> R |
caught(Throwables.ThrowingCallable<R,?> callable,
String message) |
static <R,T extends Throwable> |
checked(Throwables.ThrowingCallable<R,T> callable) |
static <R> R |
ignored(Throwables.ThrowingCallable<R,?> callable) |
static <R> R |
ignored(Throwables.ThrowingCallable<R,?> callable,
R defaultValue) |
static <R> R call(Throwables.ThrowingCallable<R,?> callable)
static <R,T extends Throwable> Callable<R> checked(Throwables.ThrowingCallable<R,T> callable)
static <R> R ignored(Throwables.ThrowingCallable<R,?> callable)
static <R> R ignored(Throwables.ThrowingCallable<R,?> callable, R defaultValue)
static <R> R caught(Throwables.ThrowingCallable<R,?> callable, String message)
static <R> R caught(Throwables.ThrowingCallable<R,?> callable, R defaultValue, Supplier<String> message)
Copyright © 2023. All rights reserved.