Package org.modelmapper.builder
Interface ProviderExpression<S,D>
- Type Parameters:
S
- source typeD
- destination type
- All Superinterfaces:
ConverterExpression<S,
,D> MapExpression<D>
,SkipExpression<D>
- All Known Subinterfaces:
ConditionExpression<S,
D>
Expresses a Provider.
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies theprovider
to be used for providing instances of the mapped property.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.SkipExpression
skip, skip, skip
-
Method Details
-
with
Specifies theprovider
to be used for providing instances of the mapped property. When used with deep mapping theprovider
should provide an instance of the last destination property. See theEDSL examples
.- Parameters:
provider
- to use for providing the destination property- Throws:
IllegalStateException
- if called from outside the context ofPropertyMap.configure()
.
-