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, multiply
public 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.ExchangeRateProvider
getExchangeRate
in class AbstractRateProvider
Copyright © 2012-2015 JavaMoney. All Rights Reserved.