public class StaticAmountMoneyExchangeRateRetriever extends Object implements AmountMoneyExchangeRateRetriever
| Modifier and Type | Field and Description |
|---|---|
static String |
INITIAL_RESOURCE_RESOURCE_NAME_DEFAULT |
| Constructor and Description |
|---|
StaticAmountMoneyExchangeRateRetriever() |
| Modifier and Type | Method and Description |
|---|---|
Set<org.jscience.economics.money.Currency> |
getSupportedCurrencies()
Gets a set of supported currencies from the mechanism used for retrieval
of exchange rates.
|
void |
retrieveExchangeRate(org.jscience.economics.money.Currency currency)
Sets the
exchangeRate property on the passed currency
relative to a reference currency. |
public static final String INITIAL_RESOURCE_RESOURCE_NAME_DEFAULT
public StaticAmountMoneyExchangeRateRetriever()
public void retrieveExchangeRate(org.jscience.economics.money.Currency currency)
throws AmountMoneyExchangeRateRetrieverException
AmountMoneyExchangeRateRetrieverexchangeRate property on the passed currency
relative to a reference currency.retrieveExchangeRate in interface AmountMoneyExchangeRateRetrievercurrency - the currency to retrieve forAmountMoneyExchangeRateRetrieverException - if an exception
unrelated to a network failure or missing network connection occuredpublic Set<org.jscience.economics.money.Currency> getSupportedCurrencies() throws AmountMoneyExchangeRateRetrieverException
AmountMoneyExchangeRateRetrievergetSupportedCurrencies in interface AmountMoneyExchangeRateRetrieverAmountMoneyExchangeRateRetrieverException - if an exception
unrelated to a network failure or missing network connection occuredCopyright © 2018. All rights reserved.