public abstract class AbstractEnumarableDelegateMapper<ROW,ROWS,T,E extends Exception> extends AbstractEnumarableMapper<ROWS,T,E> implements Mapper<ROW,T>
errorHandler
Constructor and Description |
---|
AbstractEnumarableDelegateMapper(ConsumerErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
protected abstract Mapper<ROW,T> |
getMapper(ROW source) |
T |
map(ROW source)
map the current row of source object to a new newInstance of T.
|
T |
map(ROW source,
MappingContext<? super ROW> context)
map the current row of source object to a new newInstance of T.
|
void |
mapTo(ROW source,
T target,
MappingContext<? super ROW> context)
map source object to target object.
|
forEach, iterator, newEnumarableOfT, stream
public AbstractEnumarableDelegateMapper(ConsumerErrorHandler errorHandler)
public final T map(ROW source) throws MappingException
Mapper
map
in interface Mapper<ROW,T>
source
- object to map fromMappingException
- if an exception occurspublic final T map(ROW source, MappingContext<? super ROW> context) throws MappingException
Mapper
map
in interface Mapper<ROW,T>
source
- object to map fromMappingException
- if an exception occurspublic final void mapTo(ROW source, T target, MappingContext<? super ROW> context) throws Exception
FieldMapper
mapTo
in interface FieldMapper<ROW,T>
source
- object to map fromtarget
- object to map tocontext
- the mapping contextException
- if an exception occursCopyright © 2018. All rights reserved.