Package org.modelmapper.builder
Interface ConditionExpression<S,D>
-
- Type Parameters:
S
- source typeD
- destination type
- All Superinterfaces:
ConverterExpression<S,D>
,MapExpression<D>
,ProviderExpression<S,D>
,SkipExpression<D>
public interface ConditionExpression<S,D> extends ProviderExpression<S,D>
Expresses a Condition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProviderExpression<S,D>
when(Condition<?,?> condition)
Specifies thecondition
that must apply in order for mapping to take place for a particular destination property hierarchy.-
Methods inherited from interface org.modelmapper.builder.ConverterExpression
using
-
Methods inherited from interface org.modelmapper.builder.MapExpression
map, map, map
-
Methods inherited from interface org.modelmapper.builder.ProviderExpression
with
-
Methods inherited from interface org.modelmapper.builder.SkipExpression
skip, skip, skip
-
-
-
-
Method Detail
-
when
ProviderExpression<S,D> when(Condition<?,?> condition)
Specifies thecondition
that must apply in order for mapping to take place for a particular destination property hierarchy. See theEDSL examples
.- Parameters:
condition
- that must apply when mapping the property- Throws:
IllegalStateException
- if called from outside the context ofPropertyMap.configure()
.
-
-