public class ErpDecimal extends Number implements ErpType<ErpDecimal>
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).
Constructor and Description |
---|
ErpDecimal(BigDecimal value) |
ErpDecimal(Double value) |
ErpDecimal(Float value) |
ErpDecimal(String value) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
ErpTypeConverter<ErpDecimal> |
getTypeConverter() |
BigDecimal |
getValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
String |
toString() |
byteValue, shortValue
public ErpDecimal(String value)
public ErpDecimal(Float value)
public ErpDecimal(Double value)
public ErpDecimal(BigDecimal value)
@Nonnull public ErpTypeConverter<ErpDecimal> getTypeConverter()
getTypeConverter
in interface ErpType<ErpDecimal>
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
protected boolean canEqual(Object other)
public BigDecimal getValue()
Copyright © 2019 SAP SE. All rights reserved.