Class ErpDecimal

java.lang.Object
java.lang.Number
com.sap.cloud.sdk.s4hana.serialization.ErpDecimal
All Implemented Interfaces:
ErpType<ErpDecimal>, Serializable

@Deprecated public class ErpDecimal extends Number implements ErpType<ErpDecimal>
Deprecated.
This module will be discontinued, along with its classes and methods.
Representation of a decimal in an ERP.

This class translates the representation of decimals in an ERP, which uses the last character in its string representation to indicate the decimal's sign (e.g., "12.34-" for negative and "23.45 " for positive numbers).

See Also:
  • Constructor Details

    • ErpDecimal

      public ErpDecimal(@Nonnull String value)
      Deprecated.
      Constructor.
      Parameters:
      value - The String value.
      Throws:
      IllegalArgumentException - when the input value could not be converted.
    • ErpDecimal

      public ErpDecimal(@Nonnull Float value)
      Deprecated.
      Constructor.
      Parameters:
      value - The Float value.
      Throws:
      IllegalArgumentException - when the input value could not be converted.
    • ErpDecimal

      public ErpDecimal(@Nonnull Double value)
      Deprecated.
      Constructor.
      Parameters:
      value - The Double value.
      Throws:
      IllegalArgumentException - when the input value could not be converted.
    • ErpDecimal

      public ErpDecimal(@Nonnull BigDecimal value)
      Deprecated.
  • Method Details

    • getTypeConverter

      @Nonnull public ErpTypeConverter<ErpDecimal> getTypeConverter()
      Deprecated.
      Description copied from interface: ErpType
      Get the type converter for the ERP type.
      Specified by:
      getTypeConverter in interface ErpType<ErpDecimal>
      Returns:
      The type converter.
    • intValue

      public int intValue()
      Deprecated.
      Specified by:
      intValue in class Number
    • longValue

      public long longValue()
      Deprecated.
      Specified by:
      longValue in class Number
    • floatValue

      public float floatValue()
      Deprecated.
      Specified by:
      floatValue in class Number
    • doubleValue

      public double doubleValue()
      Deprecated.
      Specified by:
      doubleValue in class Number
    • toString

      @Nonnull public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Deprecated.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • getValue

      @Nonnull public BigDecimal getValue()
      Deprecated.