Package org.ametys.core.util
Class LambdaUtils
java.lang.Object
org.ametys.core.util.LambdaUtils
Helper for lambda expressions.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Some usefulbiPredicates
static class
Some usefulcollectors
static class
Runtime exception wrapping the exception thrown from the lambdastatic interface
Consumer allowed to throw checkedException
.static interface
Function allowed to throw checkedException
.static interface
Predicate allowed to throw checkedException
. -
Method Summary
Modifier and TypeMethodDescriptionstatic <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)
-
Method Details
-
wrap
-
wrapPredicate
-
wrapConsumer
-