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.
| Modifier and Type | Field and Description |
|---|---|
| private final ConversionQuery | |
| private final ExchangeRateProvider |
| Access | Constructor and Description |
|---|---|
| public | LazyBoundCurrencyConversion(ConversionQuery conversionQuery, ExchangeRateProvider rateProvider, ConversionContext conversionContext)
|
| Modifier and Type | Method and Description |
|---|---|
| public ExchangeRate | Returns: the exchange rate type if this instance.Implements abstract org. Implements javax. Get the exchange rate type that this provider instance is providing data for. |
| public ExchangeRateProvider | getExchangeRateProvider()
Implements javax. Access the underlying |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public CurrencyConversion | with(ConversionContext conversionContext)
Implements abstract org.
|
| conversionQuery | back to summary |
|---|---|
| private final ConversionQuery conversionQuery | |
| rateProvider | back to summary |
|---|---|
| private final ExchangeRateProvider rateProvider | |
| LazyBoundCurrencyConversion | back to summary |
|---|---|
| public LazyBoundCurrencyConversion(ConversionQuery conversionQuery, ExchangeRateProvider rateProvider, ConversionContext conversionContext) | |
| getExchangeRate | back to summary |
|---|---|
| public ExchangeRate getExchangeRate(MonetaryAmount amount) Implements abstract org. Implements javax. Get the exchange rate type that this provider instance is providing data for.
| |
| getExchangeRateProvider | back to summary |
|---|---|
| public ExchangeRateProvider getExchangeRateProvider() Implements javax. Doc from javax. Access the underlying
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| with | back to summary |
|---|---|
| public CurrencyConversion with(ConversionContext conversionContext) Implements abstract org.
| |