java.lang.Object
de.hybris.platform.cms2.common.functions.impl.Functions

public class Functions extends Object
Helper class handling specialized types of ChainFunction
  • Constructor Details

    • Functions

      public Functions()
  • Method Details

    • ofSupplierConstrainedBy

      public static <SOURCE, TARGET> ChainFunction<SOURCE,TARGET> ofSupplierConstrainedBy(Supplier<TARGET> supplier, Predicate<SOURCE> conditionalTo)
      Returns a ChainFunction that will delegate when the provided Predicate is not satisfied
      Parameters:
      supplier - the supplier to be called when the predicate is satisfied
      conditionalTo - the predicate that will cause the return of the supplier execution or will delegate to the next ChainFunction
      Returns:
      a ChainFunction