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
Conversion between
BigInteger and String.- Author:
- Gunnar Morling
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFromConversionImportTypes(ConversionContext conversionContext) Returns a set with imported types of the "from" conversion.getFromExpression(ConversionContext conversionContext) Returns the conversion string from target to source.getRequiredHelperMethods(ConversionContext conversionContext) Retrieves any helper methods required for creating the conversion.getToExpression(ConversionContext conversionContext) Returns the conversion string from source to target.Methods inherited from class org.mapstruct.ap.internal.conversion.AbstractNumberToStringConversion
getFromConversionExceptionTypes, getToConversionImportTypes, requiresDecimalFormatMethods inherited from class org.mapstruct.ap.internal.conversion.SimpleConversion
from, getToConversionExceptionTypes, toMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mapstruct.ap.internal.conversion.ConversionProvider
getRequiredHelperFields
-
Constructor Details
-
BigIntegerToStringConversion
public BigIntegerToStringConversion()
-
-
Method Details
-
getToExpression
Description copied from class:SimpleConversionReturns the conversion string from source to target. The placeholder<SOURCE>can be used to represent a reference to the source value.- Specified by:
getToExpressionin classSimpleConversion- Parameters:
conversionContext- A context providing optional information required for creating the conversion.- Returns:
- The conversion string from source to target
-
getFromExpression
Description copied from class:SimpleConversionReturns the conversion string from target to source. The placeholder<SOURCE>can be used to represent a reference to the target value.- Specified by:
getFromExpressionin classSimpleConversion- Parameters:
conversionContext- ConversionContext providing optional information required for creating the conversion.- Returns:
- The conversion string from target to source
-
getFromConversionImportTypes
Description copied from class:SimpleConversionReturns 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:
getFromConversionImportTypesin classAbstractNumberToStringConversion- Parameters:
conversionContext- the conversion context- Returns:
- conversion types required in the "from" conversion
-
getRequiredHelperMethods
Description copied from interface:ConversionProviderRetrieves any helper methods required for creating the conversion.- Specified by:
getRequiredHelperMethodsin interfaceConversionProvider- Overrides:
getRequiredHelperMethodsin classSimpleConversion- Parameters:
conversionContext- ConversionContext providing optional information required for creating the conversion.- Returns:
- any helper methods when required.
-