Package org.modelmapper.builder
Interface MapExpression<D>
-
- Type Parameters:
D
- destination type
- All Known Subinterfaces:
ConditionExpression<S,D>
,ConverterExpression<S,D>
,ProviderExpression<S,D>
,SkipExpression<D>
public interface MapExpression<D>
Expresses mapping.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description D
map()
Defines a mapping to a destination.D
map(Object subject)
Defines a mapping for thesubject
.void
map(Object source, Object destination)
Defines a mapping from thesource
to thedestination
.
-
-
-
Method Detail
-
map
D map()
Defines a mapping to a destination. See the EDSL examples atPropertyMap
.- Throws:
IllegalStateException
- if called from outside the context ofPropertyMap.configure()
.
-
map
D map(Object subject)
Defines a mapping for thesubject
. See the EDSL examples atPropertyMap
.- Parameters:
subject
- to map- Throws:
IllegalStateException
- if called from outside the context ofPropertyMap.configure()
.
-
map
void map(Object source, Object destination)
- Parameters:
source
- to map fromdestination
- to map to- Throws:
IllegalStateException
- if called from outside the context ofPropertyMap.configure()
.
-
-