Package org.modelmapper.builder
Interface ConfigurableConditionExpression<S,D>
-
- Type Parameters:
S
- source typeD
- 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurableProviderExpression<S,D>
when(Condition<?,?> condition)
Usescondition
to determine the mapping should fire or skip-
Methods inherited from interface org.modelmapper.builder.ConfigurableConverterExpression
using
-
Methods inherited from interface org.modelmapper.builder.ConfigurableProviderExpression
with
-
Methods inherited from interface org.modelmapper.builder.ReferenceMapExpression
map, skip, skip
-
-
-
-
Method Detail
-
when
ConfigurableProviderExpression<S,D> when(Condition<?,?> condition)
Usescondition
to determine the mapping should fire or skipwhen(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
-
-