Class PropertyMapperCreator.PropertyMapperCreatorTo<T>

  • Type Parameters:
    T - the property type of the source
    Enclosing class:
    PropertyMapperCreator<From,​To>

    public class PropertyMapperCreator.PropertyMapperCreatorTo<T>
    extends Object
    The inner class which is used to create the to-mapping.
    • Constructor Detail

      • PropertyMapperCreatorTo

        public PropertyMapperCreatorTo()
    • Method Detail

      • to

        public PropertyMapperCreator<From,​To> to​(BiConsumer<To,​T> to)

        Creates the to mapping


        Example:
           .to(PersonDTO::setFirstName)
         
        Parameters:
        to - to which property it should be mapped
        Returns:
        the PropertyMapper itself.