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, elsenullif no Converter has been configured.TypeMap.getPostConverter()Returns the converter to be used after mapping between the source and destination types, elsenullif no post-Converter has been configured.TypeMap.getPreConverter()Returns the converter to be used before mapping between the source and destination types, elsenullif no post-Converter has been configured.Converter<?,?> TypeMap.getPropertyConverter()Returns the Converter used for converting properties in the TypeMap, elsenullif no Converter has been configured.Chains a converter ofS->D1toS->D2with 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->D1toS->D2.Methods in org.modelmapper with parameters of type ConverterModifier and TypeMethodDescription<S,D> void ModelMapper.addConverter(Converter<S, D> converter) Registers theconverterto use when mapping instances of typesStoD.<S,D> void ModelMapper.addConverter(Converter<S, D> converter, Class<S> sourceType, Class<D> destinationType) Registers theconverterto use when mapping instances of typesStoD.Chains a converter ofS->D1toS->D2with given converter.TypeMap.setConverter(Converter<S, D> converter) Sets theconverterto be used for any conversion requests for the TypeMap's source to destination type.TypeMap.setPostConverter(Converter<S, D> converter) Sets theconverterto be used after mapping between the source and destination types.TypeMap.setPreConverter(Converter<S, D> converter) Sets theconverterto be used before mapping between the source and destination types.TypeMap.setPropertyConverter(Converter<?, ?> converter) Sets theconverterto be used for converting properties in the TypeMap.protected final MapExpression<D>Specifies theconverterto 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 TypeMethodDescriptionUsesconverterto convert a source property to destination propertySpecifies theconverterto use for converting to the destination property hierarchy. -
Uses of Converter in org.modelmapper.spi
Subinterfaces of Converter in org.modelmapper.spiModifier and TypeInterfaceDescriptioninterfaceConditionalConverter<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