Class DecimalBasedErpType<T extends DecimalBasedErpType<T>>

java.lang.Object
com.sap.cloud.sdk.s4hana.serialization.DecimalBasedErpType<T>
Type Parameters:
T - The generic sub class type.
All Implemented Interfaces:
ErpType<T>, Serializable

@Deprecated public abstract class DecimalBasedErpType<T extends DecimalBasedErpType<T>> extends Object implements ErpType<T>
Deprecated.
This module will be discontinued, along with its classes and methods.
The base class for decimal based ERP types.
See Also:
  • Constructor Details

    • DecimalBasedErpType

      public DecimalBasedErpType(@Nullable String str)
      Deprecated.
      Constructor.
      Parameters:
      str - The String representation of the number.
    • DecimalBasedErpType

      public DecimalBasedErpType(@Nonnull Double value)
      Deprecated.
      Constructor.
      Parameters:
      value - The Double value.
    • DecimalBasedErpType

      public DecimalBasedErpType(@Nonnull Float value)
      Deprecated.
      Constructor.
      Parameters:
      value - The Float value.
    • DecimalBasedErpType

      public DecimalBasedErpType(@Nullable BigDecimal value)
      Deprecated.
  • Method Details

    • getType

      @Nonnull protected abstract Class<T> getType()
      Deprecated.
      Sub class reference.
      Returns:
      The sub class.
    • isSigned

      protected abstract boolean isSigned()
      Deprecated.
      Indicator for numeric sign; are values below zero allowed?
      Returns:
      The sign flag.
    • getDecimals

      protected abstract int getDecimals()
      Deprecated.
      Indicator for decimals.
      Returns:
      The number of saved decimals.
    • getMaxLength

      protected abstract int getMaxLength()
      Deprecated.
      The maximum character length of the number.
      Returns:
      The maximum character length.
    • getTypeConverter

      @Nonnull public ErpTypeConverter<T> getTypeConverter()
      Deprecated.
      Description copied from interface: ErpType
      Get the type converter for the ERP type.
      Specified by:
      getTypeConverter in interface ErpType<T extends DecimalBasedErpType<T>>
      Returns:
      The type converter.
    • 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
    • toString

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

      @Nullable public BigDecimal getValue()
      Deprecated.