public class CompoundRateProvider extends AbstractRateProvider
ExchangeRateProvider that delegates calls to
a collection of child ExchangeRateProvider instance.| Modifier and Type | Field and Description |
|---|---|
static String |
CHILD_PROVIDER_CONTEXTS_KEY
Kery used to store a list of child
ProviderContext instances of the providers
contained within this instance. |
LOGGER| Constructor and Description |
|---|
CompoundRateProvider(Iterable<ExchangeRateProvider> providers)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExchangeRate |
getExchangeRate(ConversionQuery conversionQuery) |
divide, divide, formatLocalDate, getContext, getCurrencyConversion, multiplygetCurrencyConversion, getCurrencyConversion, getExchangeRate, getExchangeRate, getReversed, isAvailable, isAvailable, isAvailablepublic static final String CHILD_PROVIDER_CONTEXTS_KEY
ProviderContext instances of the providers
contained within this instance.public CompoundRateProvider(Iterable<ExchangeRateProvider> providers)
providers - The collection of child ExchangeRateProvider
instances this class delegates calls to.public ExchangeRate getExchangeRate(ConversionQuery conversionQuery)
getExchangeRate in interface ExchangeRateProvidergetExchangeRate in class AbstractRateProviderCopyright © 2012–2020 JavaMoney. All rights reserved.