Class ErpDecimal
java.lang.Object
java.lang.Number
com.sap.cloud.sdk.s4hana.serialization.ErpDecimal
- All Implemented Interfaces:
ErpType<ErpDecimal>
,Serializable
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 Summary
ConstructorDescriptionErpDecimal
(Double value) Deprecated.Constructor.ErpDecimal
(Float value) Deprecated.Constructor.ErpDecimal
(String value) Deprecated.Constructor.ErpDecimal
(BigDecimal value) Deprecated. -
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Constructor Details
-
ErpDecimal
Deprecated.Constructor.- Parameters:
value
- The String value.- Throws:
IllegalArgumentException
- when the input value could not be converted.
-
ErpDecimal
Deprecated.Constructor.- Parameters:
value
- The Float value.- Throws:
IllegalArgumentException
- when the input value could not be converted.
-
ErpDecimal
Deprecated.Constructor.- Parameters:
value
- The Double value.- Throws:
IllegalArgumentException
- when the input value could not be converted.
-
ErpDecimal
Deprecated.
-
-
Method Details
-
getTypeConverter
Deprecated.Description copied from interface:ErpType
Get the type converter for the ERP type.- Specified by:
getTypeConverter
in interfaceErpType<ErpDecimal>
- Returns:
- The type converter.
-
intValue
public int intValue()Deprecated. -
longValue
public long longValue()Deprecated. -
floatValue
public float floatValue()Deprecated.- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()Deprecated.- Specified by:
doubleValue
in classNumber
-
toString
Deprecated. -
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
getValue
Deprecated.
-