Class PropertyMapperCreator.PropertyMapperCreatorFromIf<T>

    • Constructor Detail

      • PropertyMapperCreatorFromIf

        public PropertyMapperCreatorFromIf()
    • 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