public final class ConversionQuery extends AbstractQuery implements CurrencySupplier
CurrencyConversion instances. If not properties are set the query
should returns the default currencies.
This class is immutable, serializable and thread-safe.KEY_QUERY_PROVIDERS, KEY_QUERY_TARGET_TYPE, KEY_QUERY_TIMESTAMPKEY_PROVIDER| Modifier and Type | Method and Description |
|---|---|
CurrencyUnit |
getBaseCurrency()
Get the base currency.
|
CurrencyUnit |
getCurrency()
Get the terminating currency.
|
Set<RateType> |
getRateTypes()
Get the rate types set.
|
ConversionQueryBuilder |
toBuilder()
Creates a new Builder preinitialized with values from this instance.
|
getProviderNames, getTargetTypepublic Set<RateType> getRateTypes()
public CurrencyUnit getBaseCurrency()
CurrencyConversion
is accessed. It is optional if accessing instances of ExchangeRateProvider. If set
it can constraint
a CurrencyConversion or ExchangeRateProvider to
only support one type of base currency. By default it is not set, hereby determining the base currency by the
amount onto which the conversion is applied.public CurrencyUnit getCurrency()
CurrencyConversion
is accessed. It is optional if accessing instances of ExchangeRateProvider.getCurrency in interface CurrencySupplierpublic ConversionQueryBuilder toBuilder()
Copyright © 2012–2015 JSR 354 - Expert Group. All rights reserved.