SOURCE - the type of the source objectTARGET - the type of the destination objectpublic interface Converter<SOURCE,TARGET>
| Modifier and Type | Method and Description |
|---|---|
TARGET |
convert(SOURCE source)
Converts the source object, creating a new instance of the destination type
|
TARGET |
convert(SOURCE source,
TARGET prototype)
Convert the source object by filling the prototype
|
default List<TARGET> |
convertAll(Collection<? extends SOURCE> sources)
Convert Collection of SOURCE instances and return Collection of TARGET instances.
|
default List<TARGET> |
convertAllIgnoreExceptions(Collection<? extends SOURCE> sources)
Convert Collection of SOURCE instances and return Collection of TARGET instances.
|
default Logger |
getLogger() |
TARGET convert(SOURCE source) throws ConversionException
source - the source objectConversionException - if an error occursTARGET convert(SOURCE source, TARGET prototype) throws ConversionException
source - the source objectprototype - the prototype to fillConversionException - if an error occursdefault List<TARGET> convertAll(Collection<? extends SOURCE> sources) throws ConversionException
sources - the source instancesConversionExceptiondefault List<TARGET> convertAllIgnoreExceptions(Collection<? extends SOURCE> sources)
sources - the source instancesConversionExceptiondefault Logger getLogger()
Copyright © 2017 SAP SE. All Rights Reserved.