Interface ConfigurableConditionExpression<S,D>

Type Parameters:
S - source type
D - destination type
All Superinterfaces:
ConfigurableConverterExpression<S,D>, ConfigurableProviderExpression<S,D>, ReferenceMapExpression<S,D>

public interface ConfigurableConditionExpression<S,D> extends ConfigurableProviderExpression<S,D>
Represents mapping operations.
  • Method Details

    • when

      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