Class Functions
- java.lang.Object
-
- de.hybris.platform.cms2.common.functions.impl.Functions
-
public class Functions extends java.lang.ObjectHelper class handling specialized types ofChainFunction
-
-
Constructor Summary
Constructors Constructor Description Functions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <SOURCE,TARGET>
ChainFunction<SOURCE,TARGET>ofSupplierConstrainedBy(java.util.function.Supplier<TARGET> supplier, java.util.function.Predicate<SOURCE> conditionalTo)Returns aChainFunctionthat will delegate when the providedPredicateis not satisfied
-
-
-
Method Detail
-
ofSupplierConstrainedBy
public static <SOURCE,TARGET> ChainFunction<SOURCE,TARGET> ofSupplierConstrainedBy(java.util.function.Supplier<TARGET> supplier, java.util.function.Predicate<SOURCE> conditionalTo)
Returns aChainFunctionthat will delegate when the providedPredicateis not satisfied- Parameters:
supplier- the supplier to be called when the predicate is satisfiedconditionalTo- the predicate that will cause the return of the supplier execution or will delegate to the nextChainFunction- Returns:
- a
ChainFunction
-
-