Class Functions
java.lang.Object
de.hybris.platform.cms2.common.functions.impl.Functions
Helper class handling specialized types of
ChainFunction-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <SOURCE,TARGET>
ChainFunction<SOURCE,TARGET> ofSupplierConstrainedBy(Supplier<TARGET> supplier, Predicate<SOURCE> conditionalTo) Returns aChainFunctionthat will delegate when the providedPredicateis not satisfied
-
Constructor Details
-
Functions
public Functions()
-
-
Method Details
-
ofSupplierConstrainedBy
public static <SOURCE,TARGET> ChainFunction<SOURCE,TARGET> ofSupplierConstrainedBy(Supplier<TARGET> supplier, 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
-