public class CompoundRateProvider extends AbstractRateProvider
ExchangeRateProvider
that delegates calls to
a collection of child ExchangeRateProvider
instance.LOGGER
Constructor and Description |
---|
CompoundRateProvider(java.lang.Iterable<javax.money.convert.ExchangeRateProvider> providers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected javax.money.convert.ExchangeRate |
getExchangeRateInternal(javax.money.CurrencyUnit base,
javax.money.CurrencyUnit term,
javax.money.convert.ConversionContext context) |
getCurrencyConversion, getCurrencyConversion, getCurrencyConversion, getCurrencyConversion, getExchangeRate, getExchangeRate, getExchangeRate, getExchangeRate, getProviderContext, getReversed, isAvailable, isAvailable, isAvailable, isAvailable
public CompoundRateProvider(java.lang.Iterable<javax.money.convert.ExchangeRateProvider> providers)
providerContext
- The ProviderContext
this instance is providing.
Providers added must return the same on
ProviderContext.getProviderName()
.protected javax.money.convert.ExchangeRate getExchangeRateInternal(javax.money.CurrencyUnit base, javax.money.CurrencyUnit term, javax.money.convert.ConversionContext context)
getExchangeRateInternal
in class AbstractRateProvider