T
- The generic sub class type.public abstract class DecimalBasedErpType<T extends DecimalBasedErpType<T>> extends Object implements ErpType<T>
Constructor and Description |
---|
DecimalBasedErpType(BigDecimal value) |
DecimalBasedErpType(Double value)
Constructor.
|
DecimalBasedErpType(Float value)
Constructor.
|
DecimalBasedErpType(String str)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
protected abstract int |
getDecimals()
Indicator for decimals.
|
protected abstract int |
getMaxLength()
The maximum character length of the number.
|
protected abstract Class<T> |
getType()
Sub class reference.
|
ErpTypeConverter<T> |
getTypeConverter()
Get the type converter for the ERP type.
|
BigDecimal |
getValue() |
int |
hashCode() |
protected abstract boolean |
isSigned()
Indicator for numeric sign; are values below zero allowed?
|
String |
toString() |
public DecimalBasedErpType(String str)
str
- The String representation of the number.public DecimalBasedErpType(Double value)
value
- The Double value.public DecimalBasedErpType(Float value)
value
- The Float value.public DecimalBasedErpType(@Nullable BigDecimal value)
protected abstract boolean isSigned()
protected abstract int getDecimals()
protected abstract int getMaxLength()
@Nonnull public ErpTypeConverter<T> getTypeConverter()
ErpType
getTypeConverter
in interface ErpType<T extends DecimalBasedErpType<T>>
protected boolean canEqual(Object other)
@Nullable public BigDecimal getValue()
Copyright © 2020 SAP SE. All rights reserved.