Interface ConfigurableConditionExpression<S,​D>

    • Method Detail

      • when

        ConfigurableProviderExpression<S,​D> when​(Condition<?,​?> condition)
        Uses condition to determine the mapping should fire or skip
         
           when(condition).<String>map(Src::getCustomer, Dest::setCustomer)
           with(ctx -> ctx.getSource() != null).<Customer>map(Src::getCustomer, Dest::setCustomer)
         
         
        Parameters:
        condition - a condition to apply the mapping action should be invoked or not