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>
public interface ProviderExpression<S,D> extends ConverterExpression<S,D>
Expresses a Provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConverterExpression<S,D>
with(Provider<?> provider)
Specifies 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 Detail
-
with
ConverterExpression<S,D> with(Provider<?> provider)
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()
.
-
-