public class Unchecked extends Object
https://segmentfault.com/a/1190000007832130 https://github.com/jOOQ/jOOL
| Constructor and Description |
|---|
Unchecked() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Callable<T> |
callable(CheckedCallable<T> callable)
构造受检的 callable
|
static <T> Comparator<T> |
comparator(CheckedComparator<T> comparator)
构造受检的 comparator
|
static <T> Consumer<T> |
consumer(CheckedConsumer<T> consumer)
构造受检的 supplier
|
static <T,R> Function<T,R> |
function(CheckedFunction<T,R> function)
构造受检的 function
|
static <T> Predicate<T> |
predicate(CheckedPredicate<T> predicate)
构造受检的 predicate
|
static Runnable |
runnable(CheckedRunnable runnable)
构造受检的 runnable
|
static <T> Supplier<T> |
supplier(CheckedSupplier<T> supplier)
构造受检的 supplier
|
public static <T,R> Function<T,R> function(CheckedFunction<T,R> function)
T - 泛型function - CheckedFunctionpublic static <T> Consumer<T> consumer(CheckedConsumer<T> consumer)
T - 泛型consumer - CheckedConsumerpublic static <T> Supplier<T> supplier(CheckedSupplier<T> supplier)
T - 泛型supplier - CheckedSupplierpublic static <T> Predicate<T> predicate(CheckedPredicate<T> predicate)
T - 泛型predicate - CheckedPredicatepublic static Runnable runnable(CheckedRunnable runnable)
runnable - CheckedRunnablepublic static <T> Callable<T> callable(CheckedCallable<T> callable)
T - 泛型callable - CheckedCallablepublic static <T> Comparator<T> comparator(CheckedComparator<T> comparator)
T - 泛型comparator - CheckedComparatorCopyright © 2024. All rights reserved.