Package | Description |
---|---|
javax.money.convert |
Defines the monetary currency conversion API.
|
Modifier and Type | Method and Description |
---|---|
ExchangeRate |
ExchangeRate.Builder.create()
Builds a new instance of
ExchangeRate . |
ExchangeRate |
ExchangeRateProvider.getExchangeRate(CurrencyUnit base,
CurrencyUnit term)
Access a
ExchangeRate using the given currencies. |
ExchangeRate |
ExchangeRateProvider.getExchangeRate(CurrencyUnit base,
CurrencyUnit term,
ConversionContext conversionContext)
Access a
ExchangeRate using the given currencies. |
ExchangeRate |
CurrencyConversion.getExchangeRate(MonetaryAmount sourceAmount)
Get the
ExchangeRate applied for the given MonetaryAmount
. |
ExchangeRate |
ExchangeRateProvider.getExchangeRate(java.lang.String baseCode,
java.lang.String termCode)
Access a
ExchangeRate using the given currencies. |
ExchangeRate |
ExchangeRateProvider.getExchangeRate(java.lang.String baseCode,
java.lang.String termCode,
ConversionContext conversionContext)
Access a
ExchangeRate using the given currencies. |
ExchangeRate |
ExchangeRateProvider.getReversed(ExchangeRate rate)
The method reverses the
ExchangeRate to a rate mapping from term
to base CurrencyUnit . |
Modifier and Type | Method and Description |
---|---|
java.util.List<ExchangeRate> |
ExchangeRate.getExchangeRateChain()
Access the chain of exchange rates.
|
Modifier and Type | Method and Description |
---|---|
int |
ExchangeRate.compareTo(ExchangeRate o) |
ExchangeRate |
ExchangeRateProvider.getReversed(ExchangeRate rate)
The method reverses the
ExchangeRate to a rate mapping from term
to base CurrencyUnit . |
ExchangeRate.Builder |
ExchangeRate.Builder.setRate(ExchangeRate rate)
Initialize the
ExchangeRate.Builder with an ExchangeRate . |
ExchangeRate.Builder |
ExchangeRate.Builder.setRateChain(ExchangeRate... exchangeRates)
Sets the
ExchangeRate chain. |