public final class Conversion extends Object
XFunction) into more common constructs (e.g. Function) that will wrap such exceptions in
WrappedExceptions.Converter| Modifier and Type | Method and Description |
|---|---|
static <T,U> BiConsumer<T,U> |
biConsumer(XBiConsumer<T,U,?> xBiConsumer)
Wraps an
XBiConsumer that may throw a checked exception as BiConsumer that,
when executed, wraps any occurring checked exception as WrappedException. |
static <T,U,R> BiFunction<T,U,R> |
biFunction(XBiFunction<T,U,R,?> xBiFunction)
Wraps an
XBiFunction that may throw a checked exception as BiFunction that,
when executed, wraps any occurring checked exception as a specific unchecked exception. |
static <T,U> BiPredicate<T,U> |
biPredicate(XBiPredicate<T,U,?> xBiPredicate)
Wraps an
XBiPredicate that may throw a checked exception as BiPredicate that,
when executed, wraps any occurring checked exception as a specific unchecked exception. |
static <T> Consumer<T> |
consumer(XConsumer<T,?> xConsumer)
Wraps an
XConsumer that may throw a checked exception as Consumer that,
when executed, wraps any occurring checked exception as WrappedException. |
static <T,R> Function<T,R> |
function(XFunction<T,R,?> xFunction)
Wraps an
XFunction that may throw a checked exception as Function that,
when executed, wraps any occurring checked exception as WrappedException. |
static <T> Predicate<T> |
predicate(XPredicate<T,?> xPredicate)
Wraps an
XPredicate that may throw a checked exception as Predicate that,
when executed, wraps any occurring checked exception as WrappedException. |
static Runnable |
runnable(XRunnable<?> xRunnable)
Wraps an
XRunnable that may throw a checked exception as Runnable that,
when executed, wraps any occurring checked exception as WrappedException. |
static <R> Supplier<R> |
supplier(XSupplier<R,?> xSupplier)
Wraps an
XSupplier that may throw a checked exception as Supplier that,
when executed, wraps any occurring checked exception as WrappedException. |
public static Runnable runnable(XRunnable<?> xRunnable)
XRunnable that may throw a checked exception as Runnable that,
when executed, wraps any occurring checked exception as WrappedException.public static <T> Consumer<T> consumer(XConsumer<T,?> xConsumer)
XConsumer that may throw a checked exception as Consumer that,
when executed, wraps any occurring checked exception as WrappedException.public static <T,U> BiConsumer<T,U> biConsumer(XBiConsumer<T,U,?> xBiConsumer)
XBiConsumer that may throw a checked exception as BiConsumer that,
when executed, wraps any occurring checked exception as WrappedException.public static <R> Supplier<R> supplier(XSupplier<R,?> xSupplier)
XSupplier that may throw a checked exception as Supplier that,
when executed, wraps any occurring checked exception as WrappedException.public static <T> Predicate<T> predicate(XPredicate<T,?> xPredicate)
XPredicate that may throw a checked exception as Predicate that,
when executed, wraps any occurring checked exception as WrappedException.public static <T,U> BiPredicate<T,U> biPredicate(XBiPredicate<T,U,?> xBiPredicate)
XBiPredicate that may throw a checked exception as BiPredicate that,
when executed, wraps any occurring checked exception as a specific unchecked exception.public static <T,R> Function<T,R> function(XFunction<T,R,?> xFunction)
XFunction that may throw a checked exception as Function that,
when executed, wraps any occurring checked exception as WrappedException.public static <T,U,R> BiFunction<T,U,R> biFunction(XBiFunction<T,U,R,?> xBiFunction)
XBiFunction that may throw a checked exception as BiFunction that,
when executed, wraps any occurring checked exception as a specific unchecked exception.Copyright © 2021. All rights reserved.