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 source object to a new newInstance of T
|
T |
map(ROW source,
MappingContext<? super ROW> context) |
void |
mapTo(ROW source,
T target,
MappingContext<? super ROW> context)
map source object to target object.
|
forEach, iterator, newEnumarableOfT, streampublic AbstractEnumarableDelegateMapper(ConsumerErrorHandler errorHandler)
public final T map(ROW source) throws MappingException
Mappermap 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
map in interface Mapper<ROW,T>MappingExceptionpublic final void mapTo(ROW source, T target, MappingContext<? super ROW> context) throws Exception
FieldMappermapTo in interface FieldMapper<ROW,T>source - object to map fromtarget - object to map tocontext - the mapping contextException - if an exception occursCopyright © 2017. All rights reserved.