Class PropertyMapperCreator.PropertyMapperCreatorTo.PropertyMapperCreatorWith<S>

  • Type Parameters:
    S - the property type of the target
    Enclosing class:
    PropertyMapperCreator.PropertyMapperCreatorTo<T>

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

      • PropertyMapperCreatorWith

        public PropertyMapperCreatorWith()
    • Method Detail

      • with

        public PropertyMapperCreator<From,​To> with​(Function<T,​S> mapping)

        defines a function, of how the source property should be mapped to the target one


        Example:
           .with(String::toLowerCase)
         
        Parameters:
        mapping - defines a function, of how the source property should be mapped to the target one
        Returns:
        the PropertyMapper itself.