Package org.modelmapper.spi
Interface MappingEngine
public interface MappingEngine
Engine that performs mapping operations.
-
Method Summary
Modifier and TypeMethodDescription<S,D> D createDestination(MappingContext<S, D> context) Creates an instance of the destination type for thecontext, capturing any errors that may occur during instantiation.<S,D> D map(MappingContext<S, D> context) Maps an instance of typeDfor thecontext.
-
Method Details
-
map
Maps an instance of typeDfor thecontext.- Type Parameters:
S- source typeD- destination type- Parameters:
context- to map for- Returns:
- fully mapped instance of
D
-
createDestination
Creates an instance of the destination type for thecontext, capturing any errors that may occur during instantiation.
-