Package org.mapstruct.ap.internal.conversion
package org.mapstruct.ap.internal.conversion
Provides built-in conversions between primitive and wrapper types, strings, dates etc. Conversions are effectively
short String snippets such as (int) or .toString() which are added inline to the generated mapping
code.
-
ClassDescriptionBase type for mapping Java 8 time types to String and vice versa.Base class for conversions between Joda-Time types and String.Abstract base class for
PrimitiveToStringConversion,WrapperToStringConversion,BigDecimalToStringConversionandBigIntegerToStringConversionContains shared utility methods.Conversion betweenBigDecimalandBigInteger.Conversion betweenBigDecimaland native number types.Conversion betweenBigDecimalandString.Conversion betweenBigDecimaland wrappers of native number types.Conversion betweenBigIntegerand native number types.Conversion betweenBigIntegerandString.Conversion betweenBigIntegerand wrappers of native number types.Conversion betweencharandString.Implementations create inlineTypeConversions such as(long)source,Integer.valueOf(source)ornew SimpleDateFormat().format( source ).Methods mainly used inSimpleConversionclasses, e. g.HelperMethod that creates aDecimalFormatDecimalFormat df = new DecimalFormat( numberFormat )with setParseBigDecimal set to true.SimpleConversion for mappingLocalDateTimetoDateand vice versa.SimpleConversion for mappingLocalDateTimetoLocalDateand vice versa.Specialization ofAbstractJavaTimeToStringConversionfor convertingLocalDateTimeSpecialization ofAbstractJavaTimeToStringConversionfor convertingLocalDateSpecialization ofAbstractJavaTimeToStringConversionfor convertingLocalTimeSimpleConversion for mappingZonedDateTimetoDateand vice versa.Specialization ofAbstractJavaTimeToStringConversionfor convertingZonedDateTimeConversion betweenDateTimeandCalendar.Conversion betweenDateTimeandString.Conversion betweenLocalDateTimeandString.Conversion betweenLocalDateandString.Conversion betweenLocalTimeandString.Conversion between the following Joda types andDate: org.joda.time.DateTime org.joda.time.LocalDateTime org.joda.time.LocalDateA conversion provider that wraps / unwraps the underlying conversion in Optional.Conversion between primitive types such asbyteorlong.Conversion between primitive types such asbyteand wrapper types such asInteger.* AConversionProviderwhich creates the inversed conversions for a given conversion provider.Base class forConversionProviders creatingTypeConversions which don't declare any exception types.Handles conversion between a target typeTandString, whereT#parse(String)andT#toStringare inverse operations.Handles conversion between a target typeStringBuilderandString.Conversion betweenOptionaland its base type.