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