Class ObjectMappie3

  • All Implemented Interfaces:

    
    public abstract class ObjectMappie3<FROM1 extends Object, FROM2 extends Object, FROM3 extends Object, TO extends Object>
     implements Mappie<TO>
                        

    Base class for object mappers. See the documentation for a complete overview of how to generate object mappers.

    For example

    class PersonMapper : ObjectMappie3<PersonDto, AddressDto, DateOfBirthDto, Person>() {
         override fun map(first: PersonDto, second: Address) = mapping()
    }

    will generate a mapper from PersonDto, AddressDto, and 'DateOfBirthDto to Person, assuming all dto's and Person have a resolvable mapping.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectMappie3()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • ObjectMappie3

        ObjectMappie3()