Class Converters

java.lang.Object
de.hybris.platform.converters.Converters

public final class Converters extends Object
Helper class for converters
  • 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: