Package science.aist.jack.general
Class PropertyMapperCreator.PropertyMapperCreatorFromIf<T>
- java.lang.Object
-
- science.aist.jack.general.PropertyMapperCreator.PropertyMapperCreatorFromIf<T>
-
- Enclosing class:
- PropertyMapperCreator<From,To>
public class PropertyMapperCreator.PropertyMapperCreatorFromIf<T> extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyMapperCreatorFromIf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyMapperCreator.PropertyMapperCreatorTo<T>
iff(Predicate<T> predicate)
iff --> if and only if.
-
-
-
Method Detail
-
iff
public PropertyMapperCreator.PropertyMapperCreatorTo<T> iff(Predicate<T> predicate)
iff --> if and only if. the problem is that if is a keyword, therefore we ues iff
Example:.iff(Objects::nonNull)
- Parameters:
predicate
- the predicate to be check before the mapping- Returns:
- the to mapping
-
-