Package org.ametys.core.util
Class LambdaUtils
java.lang.Object
org.ametys.core.util.LambdaUtils
Helper for lambda expressions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSome usefulbiPredicatesstatic classSome usefulcollectorsstatic classRuntime exception wrapping the exception thrown from the lambdastatic interfaceConsumer allowed to throw checkedException.static interfaceConsumer allowed to throw checkedException.static interfaceFunction allowed to throw checkedException.static interfacePredicate 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
-