public final class SingleNonFixedRateConversionResult extends Object
The parameter is as follows:
exchangeRate - The ExchangeRate
used for conversion.
convertedAmount - The CurrencyAmount
after conversion.
roundedOffConvertedAmount - The CurrencyAmount
after conversion which is rounded off to a precision based on
the exponent for the 'To' currency. An exponent represents the relationship between a major and minor currency. For
example, 100 cents (minor unit) make a Dollar (major unit). Exponents for all currencies are published by ISO and
this information is also available in the Java Currency class.
Modifier and Type | Class and Description |
---|---|
static class |
SingleNonFixedRateConversionResult.SingleNonFixedRateConversionResultBuilder |
Modifier and Type | Method and Description |
---|---|
static SingleNonFixedRateConversionResult.SingleNonFixedRateConversionResultBuilder |
builder() |
boolean |
equals(Object o) |
@NonNull CurrencyAmount |
getConvertedAmount() |
@NonNull ExchangeRate |
getExchangeRate() |
@NonNull CurrencyAmount |
getRoundedOffConvertedAmount() |
int |
hashCode() |
String |
toString() |
@Nonnull public static SingleNonFixedRateConversionResult.SingleNonFixedRateConversionResultBuilder builder()
@NonNull public @NonNull ExchangeRate getExchangeRate()
@NonNull public @NonNull CurrencyAmount getConvertedAmount()
@NonNull public @NonNull CurrencyAmount getRoundedOffConvertedAmount()
Copyright © 2021 SAP SE. All rights reserved.