Class AbstractMapper<S,D>

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 Details

    • mapper

      protected org.modelmapper.ModelMapper mapper
    • sourceClass

      protected Class<S> sourceClass
    • destinationClass

      protected Class<D> destinationClass
  • Method Details

    • map

      public D map(S source)
      Map source object to destination object.
      Specified by:
      map in interface Mapper<S,D>
      Parameters:
      source - source object
      Returns:
      destination object