public interface ConfigurableConverter<SOURCE,TARGET,OPTION> extends Converter<SOURCE,TARGET>
| Modifier and Type | Method and Description |
|---|---|
default TARGET |
convert(SOURCE source)
Converts the source object, creating a new instance of the destination type
|
default TARGET |
convert(SOURCE source,
Collection<OPTION> options) |
default TARGET |
convert(SOURCE source,
TARGET prototype)
Convert the source object by filling the prototype
|
TARGET |
convert(SOURCE source,
TARGET target,
Collection<OPTION> options) |
default List<TARGET> |
convertAll(Collection<? extends SOURCE> sources,
Collection<OPTION> options) |
default List<TARGET> |
convertAll(Collection<? extends SOURCE> sources,
OPTION... options) |
Collection<OPTION> |
getDefaultOptions() |
TARGET |
getTargetInstance(SOURCE source) |
convertAll, convertAllIgnoreExceptions, getLoggerdefault TARGET convert(SOURCE source) throws ConversionException
Converterconvert in interface Converter<SOURCE,TARGET>source - the source objectConversionException - if an error occursdefault TARGET convert(SOURCE source, TARGET prototype) throws ConversionException
Converterconvert in interface Converter<SOURCE,TARGET>source - the source objectprototype - the prototype to fillConversionException - if an error occursdefault TARGET convert(SOURCE source, Collection<OPTION> options) throws ConversionException
ConversionExceptionTARGET convert(SOURCE source, TARGET target, Collection<OPTION> options) throws ConversionException
ConversionExceptiondefault List<TARGET> convertAll(Collection<? extends SOURCE> sources, OPTION... options)
default List<TARGET> convertAll(Collection<? extends SOURCE> sources, Collection<OPTION> options)
Collection<OPTION> getDefaultOptions()
Copyright © 2017 SAP SE. All Rights Reserved.