Class ProductToProductCodesMapper
java.lang.Object
de.hybris.platform.ruleengineservices.validation.ProductToProductCodesMapper
- All Implemented Interfaces:
Function<ProductModel,Set<String>>
public class ProductToProductCodesMapper
extends Object
implements Function<ProductModel,Set<String>>
Maps incoming instance of
ProductModel to a set of String values. Every String value represents
ProductModel.getCode() of all the variants of the given product-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ProductModel product) protected Stream<ProductModel>flatten(ProductModel product)
-
Constructor Details
-
ProductToProductCodesMapper
public ProductToProductCodesMapper()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ProductModel,Set<String>>
-
flatten
-