public final class LambdaUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LambdaUtils.ThrowingConsumer<T>
Consumer allowed to throw checked
Exception . |
static interface |
LambdaUtils.ThrowingFunction<T,R>
Function allowed to throw checked
Exception . |
static interface |
LambdaUtils.ThrowingPredicate<T>
Predicate allowed to throw checked
Exception . |
Modifier | Constructor and Description |
---|---|
private |
LambdaUtils() |
Modifier and Type | Method and Description |
---|---|
static <T,R> Function<T,R> |
wrap(LambdaUtils.ThrowingFunction<T,R> function)
|
static <T> Consumer<T> |
wrapConsumer(LambdaUtils.ThrowingConsumer<T> consumer)
|
static <T> Predicate<T> |
wrapPredicate(LambdaUtils.ThrowingPredicate<T> predicate)
|
private LambdaUtils()
public static <T,R> Function<T,R> wrap(LambdaUtils.ThrowingFunction<T,R> function)
public static <T> Predicate<T> wrapPredicate(LambdaUtils.ThrowingPredicate<T> predicate)
public static <T> Consumer<T> wrapConsumer(LambdaUtils.ThrowingConsumer<T> consumer)