Uses of Interface
org.modelmapper.Converter
Packages that use Converter
Package
Description
ModelMapper is an intelligent object mapping library.
Expression types for building Mappings and TypeMaps
Service Provider Interface
-
Uses of Converter in org.modelmapper
Classes in org.modelmapper that implement ConverterMethods in org.modelmapper that return ConverterModifier and TypeMethodDescriptionTypeMap.getConverter()
Returns the Converter configured for this TypeMap, elsenull
if no Converter has been configured.TypeMap.getPostConverter()
Returns the converter to be used after mapping between the source and destination types, elsenull
if no post-Converter has been configured.TypeMap.getPreConverter()
Returns the converter to be used before mapping between the source and destination types, elsenull
if no post-Converter has been configured.Converter<?,
?> TypeMap.getPropertyConverter()
Returns the Converter used for converting properties in the TypeMap, elsenull
if no Converter has been configured.Chains a converter ofS
->D1
toS
->D2
with given converter.static <S,
D> Converter<Collection<S>, Collection<D>> Converters.Collection.map
(Converters.Converter<S, D> elementConverter) Provides a helper method to create a collection converter that will map each element based on theelementConverter
.Chains a converter ofS
->D1
toS
->D2
.Methods in org.modelmapper with parameters of type ConverterModifier and TypeMethodDescription<S,
D> void ModelMapper.addConverter
(Converter<S, D> converter) Registers theconverter
to use when mapping instances of typesS
toD
.<S,
D> void ModelMapper.addConverter
(Converter<S, D> converter, Class<S> sourceType, Class<D> destinationType) Registers theconverter
to use when mapping instances of typesS
toD
.Chains a converter ofS
->D1
toS
->D2
with given converter.TypeMap.setConverter
(Converter<S, D> converter) Sets theconverter
to be used for any conversion requests for the TypeMap's source to destination type.TypeMap.setPostConverter
(Converter<S, D> converter) Sets theconverter
to be used after mapping between the source and destination types.TypeMap.setPreConverter
(Converter<S, D> converter) Sets theconverter
to be used before mapping between the source and destination types.TypeMap.setPropertyConverter
(Converter<?, ?> converter) Sets theconverter
to be used for converting properties in the TypeMap.protected final MapExpression<D>
Specifies theconverter
to use for converting to the destination property hierarchy. -
Uses of Converter in org.modelmapper.builder
Methods in org.modelmapper.builder with parameters of type ConverterModifier and TypeMethodDescriptionUsesconverter
to convert a source property to destination propertySpecifies theconverter
to use for converting to the destination property hierarchy. -
Uses of Converter in org.modelmapper.spi
Subinterfaces of Converter in org.modelmapper.spiModifier and TypeInterfaceDescriptioninterface
ConditionalConverter<S,
D> Conditionally converts matching source objects to instances of destination typeD
.Classes in org.modelmapper.spi that implement ConverterMethods in org.modelmapper.spi that return ConverterModifier and TypeMethodDescriptionConverter<?,
?> Mapping.getConverter()
Gets the Converter to be used when performing a mapping.Methods in org.modelmapper.spi with parameters of type ConverterModifier and TypeMethodDescriptionstatic <S,
D> ConditionalConverter<S, D> StrongTypeConditionalConverter.wrap
(Class<S> sourceType, Class<D> destinationType, Converter<S, D> converter) Constructors in org.modelmapper.spi with parameters of type Converter