public final class CheckedThrowing extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
CheckedThrowing.ThrowingCallable<R,T extends Throwable>
Lambda function checked exception
|
static interface |
CheckedThrowing.ThrowingComparator<E,T extends Throwable> |
static interface |
CheckedThrowing.ThrowingConsumer<E,T extends Throwable>
Lambda function checked exception
|
static interface |
CheckedThrowing.ThrowingFunction<E,R,T extends Throwable>
Lambda function checked exception
|
static interface |
CheckedThrowing.ThrowingRunnable<T extends Throwable> |
static interface |
CheckedThrowing.ThrowingSupplier<R,T extends Throwable>
Lambda function checked exception
|
| 构造器和说明 |
|---|
CheckedThrowing() |
public static <T extends Throwable> Runnable runnable(CheckedThrowing.ThrowingRunnable<T> runnable)
T - the type of Throwablerunnable - the ThrowingRunnablepublic static <R,T extends Throwable> Callable<R> callable(CheckedThrowing.ThrowingCallable<R,T> callable)
public static <E,T extends Throwable> Consumer<E> consumer(CheckedThrowing.ThrowingConsumer<E,T> consumer)
public static <E,R,T extends Throwable> Function<E,R> function(CheckedThrowing.ThrowingFunction<E,R,T> function)
public static <R,T extends Throwable> Supplier<R> supplier(CheckedThrowing.ThrowingSupplier<R,T> supplier)
public static <E,T extends Throwable> Comparator<? super E> comparator(CheckedThrowing.ThrowingComparator<E,T> comparator)
public static void caught(CheckedThrowing.ThrowingRunnable runnable)
public static <R> R caught(CheckedThrowing.ThrowingSupplier<R,?> supplier)
public static <E> void caught(CheckedThrowing.ThrowingConsumer<E,?> consumer, E arg)
public static <E,R> R caught(CheckedThrowing.ThrowingFunction<E,R,?> function, E arg)
public static <E,R> R caught(CheckedThrowing.ThrowingFunction<E,R,?> function, E arg, R defaultValue)
public static void checked(CheckedThrowing.ThrowingRunnable runnable)
public static <R> R checked(CheckedThrowing.ThrowingSupplier<R,?> supplier)
public static <E> void checked(CheckedThrowing.ThrowingConsumer<E,?> consumer, E arg)
public static <E,R> R checked(CheckedThrowing.ThrowingFunction<E,R,?> function, E arg)
public static <E,R> R checked(CheckedThrowing.ThrowingFunction<E,R,?> function, E arg, R defaultValue)
Copyright © 2023. All rights reserved.