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<javax.money.convert.ExchangeRateProvider> providers)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.money.convert.ExchangeRate |
getExchangeRate(javax.money.convert.ConversionQuery conversionQuery) |
divide, divide, getContext, getCurrencyConversion, multiplypublic static final String CHILD_PROVIDER_CONTEXTS_KEY
ProviderContext instances of the providers
contained within this instance.public CompoundRateProvider(Iterable<javax.money.convert.ExchangeRateProvider> providers)
providers - The collection of child ExchangeRateProvider
instances this class delegates calls to.public javax.money.convert.ExchangeRate getExchangeRate(javax.money.convert.ConversionQuery conversionQuery)
getExchangeRate in interface javax.money.convert.ExchangeRateProvidergetExchangeRate in class AbstractRateProviderCopyright © 2012-2015 JavaMoney. All Rights Reserved.