A - B - public static class MapperBase.MapperBaseAdapter<A,B> extends CustomMapper<A,B>
aType, bType, mapperFacade| Constructor and Description |
|---|
MapperBaseAdapter(MapperBase<A,B> delegate) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
favorsExtension()
Specifies whether this mapper is abstract, meaning that it can only
be used in combination with a non-abstract mapper.
|
void |
mapAtoB(A a,
B b,
MappingContext context)
Maps the properties of an instance of type A to the properties
of an instance of type B.
|
void |
mapBtoA(B b,
A a,
MappingContext context)
Maps the properties of an instance of type B to the properties
of an instance of type A.
|
void |
setMapperFacade(MapperFacade mapper)
Store an instance of the current MapperFacade which may be used
in mapping of nested types.
|
getAType, getBType, setUsedMapperspublic MapperBaseAdapter(MapperBase<A,B> delegate)
public void mapAtoB(A a, B b, MappingContext context)
Mapperpublic void mapBtoA(B b, A a, MappingContext context)
Mapperpublic void setMapperFacade(MapperFacade mapper)
MappersetMapperFacade in interface Mapper<A,B>setMapperFacade in class CustomMapper<A,B>public Boolean favorsExtension()
MapperfavorsExtension in interface Mapper<A,B>favorsExtension in class CustomMapper<A,B>Copyright © 2016 Glasnost. All rights reserved.