Class IntegerBasedErpType<T extends IntegerBasedErpType<T>>

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

@Deprecated public abstract class IntegerBasedErpType<T extends IntegerBasedErpType<T>> extends Object implements ErpType<T>
Deprecated.
This module will be discontinued, along with its classes and methods.
Base class for an integer like ERP type.
See Also:
  • Constructor Details

    • IntegerBasedErpType

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

      public IntegerBasedErpType(byte value)
      Deprecated.
      Constructor.
      Parameters:
      value - The byte representation of the number.
    • IntegerBasedErpType

      public IntegerBasedErpType(short value)
      Deprecated.
      Constructor.
      Parameters:
      value - The short representation of the number.
    • IntegerBasedErpType

      public IntegerBasedErpType(int value)
      Deprecated.
      Constructor.
      Parameters:
      value - The int representation of the number.
    • IntegerBasedErpType

      public IntegerBasedErpType(long value)
      Deprecated.
      Constructor.
      Parameters:
      value - The long representation of the number.
    • IntegerBasedErpType

      public IntegerBasedErpType(@Nullable BigInteger 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.
    • getMaxLength

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

      @Nullable public Byte byteValue()
      Deprecated.
      Get the Byte value.
      Returns:
      The Byte value.
    • shortValue

      @Nullable public Short shortValue()
      Deprecated.
      Get the Short value.
      Returns:
      The Short value.
    • intValue

      @Nullable public Integer intValue()
      Deprecated.
      Get the Integer value.
      Returns:
      The Integer value.
    • longValue

      @Nullable public Long longValue()
      Deprecated.
      Get the Long value.
      Returns:
      The Long value.
    • toString

      @Nonnull public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • 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 IntegerBasedErpType<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
    • getValue

      @Nullable public BigInteger getValue()
      Deprecated.