Package de.hybris.platform.converters
Class Converters
java.lang.Object
de.hybris.platform.converters.Converters
Helper class for converters
-
Method Summary
Modifier and TypeMethodDescriptionstatic <SOURCE,TARGET>
List<TARGET>convertAll(Collection<? extends SOURCE> sourceList, Converter<SOURCE, TARGET> converter) Convert all the items in the source list using a converter.
-
Method Details
-
convertAll
public static <SOURCE,TARGET> List<TARGET> convertAll(Collection<? extends SOURCE> sourceList, Converter<SOURCE, TARGET> converter) Convert all the items in the source list using a converter.- Type Parameters:
SOURCE- The type of the source objects.TARGET- The type of the converted objects.- Parameters:
sourceList- The source list of objects to convert.converter- The converter to use to convert the source objects.- Returns:
- The list of converted objects.
- See Also:
-