public final class CurrencyAmount extends Object
Currency
to the target Currency
. A String
is used to create an object of this class. This value is internally converted to BigDecimal
. It is
recommended that you create the BigDecimal
from a String
rather than using a Double
value.
The parameter is as follows:
valueString - The currency amount as a String
.
Modifier and Type | Class and Description |
---|---|
static class |
CurrencyAmount.CurrencyAmountBuilder
A builder to trim the input value for white space and create the corresponding
BigDecimal . |
Constructor and Description |
---|
CurrencyAmount(String valueString)
A constructor to trim the input value for white space and create the corresponding
BigDecimal . |
Modifier and Type | Method and Description |
---|---|
static CurrencyAmount.CurrencyAmountBuilder |
builder() |
boolean |
equals(Object o) |
BigDecimal |
getDecimalValue() |
@NonNull String |
getValueString() |
int |
hashCode() |
String |
toString() |
public CurrencyAmount(@Nonnull String valueString)
BigDecimal
.valueString
- The currency amount as a String
.@Nonnull public static CurrencyAmount.CurrencyAmountBuilder builder()
@NonNull public @NonNull String getValueString()
public BigDecimal getDecimalValue()
Copyright © 2021 SAP SE. All rights reserved.