public class IMFRateProvider extends AbstractRateProvider
ExchangeRateProvider that loads the IMF conversion data.
In most cases this provider will provide chained rates, since IMF always is
converting from/to the IMF SDR currency unit.| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,javax.money.CurrencyUnit> |
CURRENCIES_BY_NAME |
protected Map<javax.money.CurrencyUnit,List<javax.money.convert.ExchangeRate>> |
currencyToSdr |
protected org.javamoney.moneta.internal.convert.IMFRateReadingHandler |
handler |
protected static javax.money.CurrencyUnit |
SDR |
protected Map<javax.money.CurrencyUnit,List<javax.money.convert.ExchangeRate>> |
sdrToCurrency |
log| Constructor and Description |
|---|
IMFRateProvider() |
| Modifier and Type | Method and Description |
|---|---|
javax.money.convert.ExchangeRate |
getExchangeRate(javax.money.convert.ConversionQuery conversionQuery) |
void |
newDataLoaded(String resourceId,
InputStream is)
Callback called from the
LoaderService, when new data was
read for a given data item. |
String |
toString() |
divide, divide, getContext, getCurrencyConversion, getExchangeContext, getQueryDates, getScale, multiplyprotected static final Map<String,javax.money.CurrencyUnit> CURRENCIES_BY_NAME
protected static final javax.money.CurrencyUnit SDR
protected Map<javax.money.CurrencyUnit,List<javax.money.convert.ExchangeRate>> currencyToSdr
protected Map<javax.money.CurrencyUnit,List<javax.money.convert.ExchangeRate>> sdrToCurrency
protected final org.javamoney.moneta.internal.convert.IMFRateReadingHandler handler
public IMFRateProvider()
public void newDataLoaded(String resourceId, InputStream is)
LoaderService.LoaderListenerLoaderService, when new data was
read for a given data item.newDataLoaded in interface LoaderService.LoaderListenerresourceId - the resource idis - the input stream for accessing the datapublic javax.money.convert.ExchangeRate getExchangeRate(javax.money.convert.ConversionQuery conversionQuery)
getExchangeRate in interface javax.money.convert.ExchangeRateProvidergetExchangeRate in class AbstractRateProviderCopyright © 2012-2016 JavaMoney. All Rights Reserved.