Class BigIntegerToStringConversion
- java.lang.Object
-
- org.mapstruct.ap.internal.conversion.SimpleConversion
-
- org.mapstruct.ap.internal.conversion.AbstractNumberToStringConversion
-
- org.mapstruct.ap.internal.conversion.BigIntegerToStringConversion
-
- All Implemented Interfaces:
ConversionProvider
public class BigIntegerToStringConversion extends AbstractNumberToStringConversion
Conversion betweenBigInteger
andString
.- Author:
- Gunnar Morling
-
-
Constructor Summary
Constructors Constructor Description BigIntegerToStringConversion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<Type>
getFromConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "from" conversion.String
getFromExpression(ConversionContext conversionContext)
Returns the conversion string from target to source.List<HelperMethod>
getRequiredHelperMethods(ConversionContext conversionContext)
String
getToExpression(ConversionContext conversionContext)
Returns the conversion string from source to target.-
Methods inherited from class org.mapstruct.ap.internal.conversion.AbstractNumberToStringConversion
getFromConversionExceptionTypes, getToConversionImportTypes, requiresDecimalFormat
-
Methods inherited from class org.mapstruct.ap.internal.conversion.SimpleConversion
from, getToConversionExceptionTypes, to
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mapstruct.ap.internal.conversion.ConversionProvider
getRequiredHelperFields
-
-
-
-
Method Detail
-
getToExpression
public String getToExpression(ConversionContext conversionContext)
Description copied from class:SimpleConversion
Returns the conversion string from source to target. The placeholder<SOURCE>
can be used to represent a reference to the source value.- Specified by:
getToExpression
in classSimpleConversion
- Parameters:
conversionContext
- A context providing optional information required for creating the conversion.- Returns:
- The conversion string from source to target
-
getFromExpression
public String getFromExpression(ConversionContext conversionContext)
Description copied from class:SimpleConversion
Returns the conversion string from target to source. The placeholder<SOURCE>
can be used to represent a reference to the target value.- Specified by:
getFromExpression
in classSimpleConversion
- Parameters:
conversionContext
- ConversionContext providing optional information required for creating the conversion.- Returns:
- The conversion string from target to source
-
getFromConversionImportTypes
protected Set<Type> getFromConversionImportTypes(ConversionContext conversionContext)
Description copied from class:SimpleConversion
Returns a set with imported types of the "from" conversion. Defaults to an empty set; can be overridden in sub-classes to return the required types.- Overrides:
getFromConversionImportTypes
in classAbstractNumberToStringConversion
- Parameters:
conversionContext
- the conversion context- Returns:
- conversion types required in the "from" conversion
-
getRequiredHelperMethods
public List<HelperMethod> getRequiredHelperMethods(ConversionContext conversionContext)
- Specified by:
getRequiredHelperMethods
in interfaceConversionProvider
- Overrides:
getRequiredHelperMethods
in classSimpleConversion
- Parameters:
conversionContext
- ConversionContext providing optional information required for creating the conversion.- Returns:
- any helper methods when required.
-
-