FieldMapper<S,P>, Mapper<S,P>public final class GetterMapper<S,P> extends Object implements Mapper<S,P>
| Constructor | Description |
|---|---|
GetterMapper(org.simpleflatmapper.reflect.Getter<? super S,P> getter) |
| Modifier and Type | Method | Description |
|---|---|---|
P |
map(S source) |
map source object to a new newInstance of T
|
P |
map(S source,
MappingContext<? super S> context) |
|
void |
mapTo(S source,
P target,
MappingContext<? super S> context) |
map source object to target object.
|
public P map(S source) throws MappingException
Mappermap in interface Mapper<S,P>source - object to map fromMappingException - if an exception occurspublic P map(S source, MappingContext<? super S> context) throws MappingException
map in interface Mapper<S,P>MappingExceptionpublic void mapTo(S source, P target, MappingContext<? super S> context) throws Exception
FieldMappermapTo in interface FieldMapper<S,P>source - object to map fromtarget - object to map tocontext - the mapping contextException - if an exception occursCopyright © 2018. All rights reserved.