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 typeS
to instances of destination typeD
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description D
convert(MappingContext<S,D> context)
Converts theMappingContext.getSource()
to an instance ofMappingContext.getDestinationType()
.
-
-
-
Method Detail
-
convert
D convert(MappingContext<S,D> context)
Converts theMappingContext.getSource()
to an instance ofMappingContext.getDestinationType()
.- Parameters:
context
- of current mapping process- Throws:
MappingException
- if an error occurs while converting
-
-