Class BigDecimalConverter

All Implemented Interfaces:
ErpTypeConverter<BigDecimal>, TypeConverter<BigDecimal,String>

@Deprecated public class BigDecimalConverter extends AbstractErpTypeConverter<BigDecimal>
Deprecated.
This module will be discontinued, along with its classes and methods.
Type converter for BigDecimal.
  • Field Details

    • INSTANCE

      public static final BigDecimalConverter INSTANCE
      Deprecated.
      Statically created instance of this converter.
  • Constructor Details

    • BigDecimalConverter

      public BigDecimalConverter()
      Deprecated.
  • Method Details

    • getType

      @Nonnull public Class<BigDecimal> getType()
      Deprecated.
      Description copied from interface: TypeConverter
      Getter for an class object of the type to convert from/to the domain-specific counterpart.
      Returns:
      The class object of T.
    • toDomainNonNull

      @Nonnull public ConvertedObject<String> toDomainNonNull(@Nonnull BigDecimal object)
      Deprecated.
      Description copied from class: AbstractTypeConverter
      Actual converter implementation from an arbitrary object to its domain-specific counterpart.
      Specified by:
      toDomainNonNull in class AbstractTypeConverter<BigDecimal,String>
      Parameters:
      object - The object to transform to its domain-specific counterpart.
      Returns:
      A wrapper containing the domain-specific counterpart.
    • fromDomainNonNull

      @Nonnull public ConvertedObject<BigDecimal> fromDomainNonNull(@Nonnull String domainObject) throws Exception
      Deprecated.
      Description copied from class: AbstractTypeConverter
      Actual converter implementation from a domain-specific object to an arbitrary type.
      Specified by:
      fromDomainNonNull in class AbstractTypeConverter<BigDecimal,String>
      Parameters:
      domainObject - The domain-specific object to transform.
      Returns:
      A wrapper containing the converted object.
      Throws:
      Exception - If an error occurred during the transformation.