Package science.aist.jack.general
Class PropertyMapperCreator.PropertyMapperCreatorFromIf2<T1,T2>
- java.lang.Object
-
- science.aist.jack.general.PropertyMapperCreator.PropertyMapperCreatorFromIf2<T1,T2>
-
- Enclosing class:
- PropertyMapperCreator<From,To>
public class PropertyMapperCreator.PropertyMapperCreatorFromIf2<T1,T2> extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyMapperCreatorFromIf2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyMapperCreator.PropertyMapperCreatorTo2<T1,T2>
iff(BiPredicate<T1,T2> predicate)
Adds a predicate that checks if further execution of the mapping is necessary
-
-
-
Method Detail
-
iff
public PropertyMapperCreator.PropertyMapperCreatorTo2<T1,T2> iff(BiPredicate<T1,T2> predicate)
Adds a predicate that checks if further execution of the mapping is necessary
fromMapping .iff((firstName, lastName) -> !(firstName.empty || lastName.empty));
- Parameters:
predicate
- the predicate- Returns:
- a property mapper creator to
-
-