public class ReversedMapper<A,B> extends Object implements Mapper<A,B>
| 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.
|
Type<A> |
getAType() |
Type<B> |
getBType() |
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.
|
static <A,B> Mapper<A,B> |
reverse(Mapper<B,A> mapperToReverse)
Reterns a Mapper which is a reversal of the supplied Mapper
|
void |
setMapperFacade(MapperFacade mapper)
Store an instance of the current MapperFacade which may be used
in mapping of nested types.
|
void |
setUsedMappers(Mapper<Object,Object>[] mappers)
Store the set of custom mappers used by this mapper.
|
public static <A,B> Mapper<A,B> reverse(Mapper<B,A> mapperToReverse)
mapperToReverse - 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>public Boolean favorsExtension()
MapperfavorsExtension in interface Mapper<A,B>public void setUsedMappers(Mapper<Object,Object>[] mappers)
MappersetUsedMappers in interface Mapper<A,B>public Type<A> getAType()
getAType in interface MappedTypePair<A,B>Copyright © 2016 Glasnost. All rights reserved.