Class ConversionHelper
java.lang.Object
de.hybris.platform.servicelayer.dto.converter.ConversionHelper
Helper class for copying properties between objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <SRC,DEST, COLL extends Collection<DEST>>
COLLconvertAll(Collection<SRC> src, Converter<SRC, DEST> converter, COLL target) static voidcopyProperties(Object source, Object target) Copies the property from the source object (bean) to the target object (bean).
-
Method Details
-
copyProperties
Copies the property from the source object (bean) to the target object (bean).- Throws:
ConversionException
-
convertAll
public static <SRC,DEST, COLL convertAllCOLL extends Collection<DEST>> (Collection<SRC> src, Converter<SRC, DEST> converter, COLL target) - Parameters:
src- a collection with the source elements which will be convertedconverter- the converter which transforms a single element from the source type into an element of the target typetarget- this collection contains the transformed elements from the source collection- Returns:
- the parameter
targetwith the converted elements.
-