public final class ConversionHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static <SRC,DEST,COLL extends Collection<DEST>> |
convertAll(Collection<SRC> src,
Converter<SRC,DEST> converter,
COLL target)
|
static void |
copyProperties(Object source,
Object target)
Copies the property from the source object (bean) to the target object (bean).
|
public static void copyProperties(Object source, Object target) throws ConversionException
ConversionExceptionpublic static <SRC,DEST,COLL extends Collection<DEST>> COLL convertAll(Collection<SRC> src, Converter<SRC,DEST> converter, COLL target)
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 collectiontarget with the converted elements.Copyright © 2017 SAP SE. All Rights Reserved.