public final class TransformSourceMapper<ROW,I,O> extends Object implements ContextualSourceMapper<ROW,O>
| Constructor and Description |
|---|
TransformSourceMapper(ContextualSourceMapper<ROW,I> delegate,
org.simpleflatmapper.util.Function<I,O> transformer) |
| Modifier and Type | Method and Description |
|---|---|
O |
map(ROW source)
map the current row of source object to a new newInstance of T.
|
O |
map(ROW source,
MappingContext<? super ROW> context)
map the current row of source object to a new newInstance of T.
|
public TransformSourceMapper(ContextualSourceMapper<ROW,I> delegate, org.simpleflatmapper.util.Function<I,O> transformer)
public O map(ROW source) throws MappingException
ContextualSourceMappermap in interface ContextualSourceMapper<ROW,O>source - object to map fromMappingException - if an exception occurspublic O map(ROW source, MappingContext<? super ROW> context) throws MappingException
SourceMappermap in interface SourceMapper<ROW,O>source - object to map fromMappingException - if an exception occursCopyright © 2018. All rights reserved.