| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| public static final CurrencyUnit | BASE_CURRENCY
Base currency of the loaded rates is always EUR. |
| private static final String | |
| private final ProviderContext | |
| protected volatile CountDownLatch | |
| protected volatile String | |
| private static final Logger | |
| protected final Map | rates
Historic exchange rates, rate timestamp as UTC long. |
| protected final String | |
| private final SAXParserFactory | saxParserFactory
Parser factory. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private ExchangeRate | createExchangeRate(ConversionQuery query, ExchangeRateBuilder builder, ExchangeRate sourceRate, ExchangeRate target)
|
| private ECBAbstractRateProvider. | |
| private ExchangeRateBuilder | |
| protected abstract String | |
| protected abstract LoadDataInformation | |
| public ExchangeRate | getExchangeRate(ConversionQuery conversionQuery)
Implements abstract org. Implements javax. Access a |
| public void | newDataLoaded(String resourceId, InputStream is)
Implements org. Callback called from the |
| private ExchangeRate | |
| public String |
| BASE_CURRENCY | back to summary |
|---|---|
| public static final CurrencyUnit BASE_CURRENCY Base currency of the loaded rates is always EUR. | |
| BASE_CURRENCY_CODE | back to summary |
|---|---|
| private static final String BASE_CURRENCY_CODE | |
| context | back to summary |
|---|---|
| private final ProviderContext context Hides org. | |
| loadLock | back to summary |
|---|---|
| protected volatile CountDownLatch loadLock | |
| loadState | back to summary |
|---|---|
| protected volatile String loadState | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| rates | back to summary |
|---|---|
| protected final Map<LocalDate, Map<String, ExchangeRate>> rates Historic exchange rates, rate timestamp as UTC long. | |
| remoteResource | back to summary |
|---|---|
| protected final String remoteResource | |
| saxParserFactory | back to summary |
|---|---|
| private final SAXParserFactory saxParserFactory Parser factory. | |
| ECBAbstractRateProvider | back to summary |
|---|---|
| pack-priv ECBAbstractRateProvider(ProviderContext context, final String remoteRes) | |
| areBothBaseCurrencies | back to summary |
|---|---|
| private boolean areBothBaseCurrencies(ConversionQuery query) | |
| createExchangeRate | back to summary |
|---|---|
| private ExchangeRate createExchangeRate(ConversionQuery query, ExchangeRateBuilder builder, ExchangeRate sourceRate, ExchangeRate target) | |
| findExchangeRate | back to summary |
|---|---|
| private ECBAbstractRateProvider. | |
| getBuilder | back to summary |
|---|---|
| private ExchangeRateBuilder getBuilder(ConversionQuery query) | |
| getDataId | back to summary |
|---|---|
| protected abstract String getDataId() | |
| getDefaultLoadData | back to summary |
|---|---|
| protected abstract LoadDataInformation getDefaultLoadData() Gets the default data loading configuration. This configuration is used if no other is provided.
| |
| getExchangeRate | back to summary |
|---|---|
| public ExchangeRate getExchangeRate(ConversionQuery conversionQuery) Implements abstract org. Implements javax. Doc from javax. Access a
| |
| newDataLoaded | back to summary |
|---|---|
| public void newDataLoaded(String resourceId, InputStream is) Implements org. Doc from org. Callback called from the
| |
| reverse | back to summary |
|---|---|
| private ExchangeRate reverse(ExchangeRate rate) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| targets | back to summary |
|---|---|
| private final Map<String, ExchangeRate> targets | |
| RateResult | back to summary |
|---|---|
| pack-priv RateResult(Map<String, ExchangeRate> targets) | |