Class BigIntegerToStringConversion

All Implemented Interfaces:
ConversionProvider

public class BigIntegerToStringConversion extends AbstractNumberToStringConversion
Conversion between BigInteger and String.
Author:
Gunnar Morling
  • Constructor Details

    • BigIntegerToStringConversion

      public BigIntegerToStringConversion()
  • Method Details

    • 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 class SimpleConversion
      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 class SimpleConversion
      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 class AbstractNumberToStringConversion
      Parameters:
      conversionContext - the conversion context
      Returns:
      conversion types required in the "from" conversion
    • getRequiredHelperMethods

      public List<HelperMethod> getRequiredHelperMethods(ConversionContext conversionContext)
      Description copied from interface: ConversionProvider
      Retrieves any helper methods required for creating the conversion.
      Specified by:
      getRequiredHelperMethods in interface ConversionProvider
      Overrides:
      getRequiredHelperMethods in class SimpleConversion
      Parameters:
      conversionContext - ConversionContext providing optional information required for creating the conversion.
      Returns:
      any helper methods when required.