SOURCE - the type of the source objectTARGET - the type of the destination objectOPTION - the type of the options listpublic 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,
java.util.Collection<OPTION> options)
Converts a SOURCE object into a TARGET object using provided Options.
|
default TARGET |
convert(SOURCE source,
TARGET prototype)
Convert the source object by filling the prototype
|
TARGET |
convert(SOURCE source,
TARGET target,
java.util.Collection<OPTION> options)
Converts a SOURCE object into a TARGET object using provided Options.
|
default java.util.List<TARGET> |
convertAll(java.util.Collection<? extends SOURCE> sources,
java.util.Collection<OPTION> options)
Converts a Collection of SOURCE objects into a List of TARGET objects using provided as Collection Options.
|
default java.util.List<TARGET> |
convertAll(java.util.Collection<? extends SOURCE> sources,
OPTION... options)
Converts a Collection SOURCE objects into a List of TARGET objects using provided as array Options.
|
java.util.Collection<OPTION> |
getDefaultOptions()
Getting default options
|
TARGET |
getTargetInstance(SOURCE source)
Getting target instance of source object
|
convertAll, convertAllIgnoreExceptions, getLoggerdefault TARGET convert(SOURCE source)
Converterdefault TARGET convert(SOURCE source, TARGET prototype)
Converterdefault TARGET convert(SOURCE source, java.util.Collection<OPTION> options)
source - - the source objectoptions - - the collection of convert optionsConversionException - when an error occurs during the conversion processTARGET convert(SOURCE source, TARGET target, java.util.Collection<OPTION> options)
source - - the source objecttarget - - the target objectoptions - - the collection of convert optionsConversionException - when an error occurs during the conversion processdefault java.util.List<TARGET> convertAll(java.util.Collection<? extends SOURCE> sources, OPTION... options)
sources - - the source objectsoptions - - the array of convert optionsConversionException - when an error occurs during the conversion processdefault java.util.List<TARGET> convertAll(java.util.Collection<? extends SOURCE> sources, java.util.Collection<OPTION> options)
sources - - the source objectsoptions - - the array of convert optionsConversionException - when an error occurs during the conversion processTARGET getTargetInstance(SOURCE source)
source - - the source objectjava.util.Collection<OPTION> getDefaultOptions()
Copyright © 2018 SAP SE. All Rights Reserved.