Package science.aist.jack.general
Class PropertyMapperCreator.PropertyMapperCreatorTo<T>
- java.lang.Object
-
- science.aist.jack.general.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
PropertyMapperCreator.PropertyMapperCreatorTo.PropertyMapperCreatorWith<S>
The inner class which is used to create the with-mapping
-
Constructor Summary
Constructors Constructor Description PropertyMapperCreatorTo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyMapperCreator<From,To>
to(BiConsumer<To,T> to)
Creates the to mapping<S> PropertyMapperCreator.PropertyMapperCreatorTo.PropertyMapperCreatorWith<S>
toWith(BiConsumer<To,S> to)
Creates the to mapping with an additional mapping function
-
-
-
Method Detail
-
toWith
public <S> PropertyMapperCreator.PropertyMapperCreatorTo.PropertyMapperCreatorWith<S> toWith(BiConsumer<To,S> to)
Creates the to mapping with an additional mapping function
Example:.to(PersonDTO::setFirstName)
- Type Parameters:
S
- the type to which it should be mapped- Parameters:
to
- to which property it should be mapped- Returns:
- the mapping creator for the with mapping
-
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.
-
-