java.lang.Object
org.qubership.atp.itf.lite.backend.converters.history.AbstractMapper<S,D>
- Type Parameters:
S - source object type
D - destination object type
- All Implemented Interfaces:
Mapper<S,D>
- Direct Known Subclasses:
AbstractVersioningMapper
public abstract class AbstractMapper<S,D>
extends Object
implements Mapper<S,D>
Abstract custom mapper with possibility to customize mapping of necessary fields.
-
Field Summary
Fields
protected org.modelmapper.ModelMapper
-
Method Summary
Map source object to destination object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
mapper
protected org.modelmapper.ModelMapper mapper
-
sourceClass
protected Class<S> sourceClass
-
destinationClass
protected Class<D> destinationClass
-
Method Details
-
map
Map source object to destination object.
- Specified by:
map in interface Mapper<S,D>
- Parameters:
source - source object
- Returns:
- destination object