Package science.aist.jack.general
Class PropertyMapperCreator.PropertyMapperCreatorTo.PropertyMapperCreatorWith<S>
- java.lang.Object
-
- science.aist.jack.general.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 Summary
Constructors Constructor Description PropertyMapperCreatorWith()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyMapperCreator<From,To>
with(Function<T,S> mapping)
defines a function, of how the source property should be mapped to the target one
-
-
-
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.
-
-