Package org.modelmapper
Interface Converter<S,D>
- Type Parameters:
S
- source typeD
- destination type
- All Known Subinterfaces:
ConditionalConverter<S,
D>
- All Known Implementing Classes:
AbstractConverter
,StrongTypeConditionalConverter
public interface Converter<S,D>
Converts instances of source type
S
to instances of destination type D
.-
Method Summary
Modifier and TypeMethodDescriptionconvert
(MappingContext<S, D> context) Converts theMappingContext.getSource()
to an instance ofMappingContext.getDestinationType()
.
-
Method Details
-
convert
Converts theMappingContext.getSource()
to an instance ofMappingContext.getDestinationType()
.- Parameters:
context
- of current mapping process- Throws:
MappingException
- if an error occurs while converting
-