public class LazyBoundCurrencyConversion extends AbstractCurrencyConversion implements CurrencyConversion
CurrencyConversion that is converting to a
specific target CurrencyUnit. Each instance of this class is bound to
a specific ExchangeRateProvider, a term CurrencyUnit and a
target timestamp.KEY_SCALE| Constructor and Description |
|---|
LazyBoundCurrencyConversion(ConversionQuery conversionQuery,
ExchangeRateProvider rateProvider,
ConversionContext conversionContext) |
| Modifier and Type | Method and Description |
|---|---|
ExchangeRate |
getExchangeRate(MonetaryAmount amount)
Get the exchange rate type that this provider instance is providing data
for.
|
ExchangeRateProvider |
getExchangeRateProvider() |
String |
toString() |
CurrencyConversion |
with(ConversionContext conversionContext) |
apply, getContext, getCurrency, roundFactorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContextapplygetCurrencypublic LazyBoundCurrencyConversion(ConversionQuery conversionQuery, ExchangeRateProvider rateProvider, ConversionContext conversionContext)
public ExchangeRate getExchangeRate(MonetaryAmount amount)
getExchangeRate in interface CurrencyConversiongetExchangeRate in class AbstractCurrencyConversionAbstractCurrencyConversion.apply(MonetaryAmount)public ExchangeRateProvider getExchangeRateProvider()
getExchangeRateProvider in interface CurrencyConversionpublic CurrencyConversion with(ConversionContext conversionContext)
with in class AbstractCurrencyConversionpublic String toString()
toString in class AbstractCurrencyConversionCopyright © 2012–2020 JavaMoney. All rights reserved.