public abstract class OnlineAmountMoneyExchangeRateRetriever extends Object implements AmountMoneyExchangeRateRetriever
| Constructor and Description |
|---|
OnlineAmountMoneyExchangeRateRetriever() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract double |
fetchConversionRate(org.jscience.economics.money.Currency currency)
Fetches online information about a exchange rate for
currency
relative to a reference currency. |
void |
retrieveExchangeRate(org.jscience.economics.money.Currency currency)
Sets the
exchangeRate property on the passed currency
relative to a reference currency. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedCurrenciespublic OnlineAmountMoneyExchangeRateRetriever()
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 occuredprotected abstract double fetchConversionRate(org.jscience.economics.money.Currency currency)
throws AmountMoneyExchangeRateRetrieverException
currency
relative to a reference currency.currency - the currency to fetch forAmountMoneyExchangeRateRetrieverException - if an exception
unrelated to a network failure or missing network connection occuredCopyright © 2018. All rights reserved.