Uses of Class
javax.money.convert.ConversionContext
Package | Description |
---|---|
javax.money.convert |
Defines the monetary currency conversion API.
|
-
Uses of ConversionContext in javax.money.convert
Fields in javax.money.convert declared as ConversionContext Modifier and Type Field Description static ConversionContext
ConversionContext. ANY_CONVERSION
ConversionContext that queries any conversion available.static ConversionContext
ConversionContext. DEFERRED_CONVERSION
ConversionContext querying for any deferred rates.static ConversionContext
ConversionContext. HISTORIC_CONVERSION
ConversionContext querying for any historic rates.static ConversionContext
ConversionContext. OTHER_CONVERSION
ConversionContext querying for any other rates.static ConversionContext
ConversionContext. REALTIME_CONVERSION
ConversionContext querying for real-time rates.Methods in javax.money.convert that return ConversionContext Modifier and Type Method Description ConversionContext
ConversionContextBuilder. build()
Creates a newConversionContext
with the data from this Builder instance.static ConversionContext
ConversionContext. from(ProviderContext providerContext, RateType rateType)
Creates a new ConversionContext for the givenProviderContext
and the givenRateType
.ConversionContext
CurrencyConversion. getContext()
Access the targetConversionContext
of this conversion instance.ConversionContext
ExchangeRate. getContext()
Access theConversionContext
ofExchangeRate
.ConversionContext
CurrencyConversionException. getConversionContext()
Gets the queried timestamp at fault.static ConversionContext
ConversionContext. of()
Simple factory method forConversionContext
.static ConversionContext
ConversionContext. of(java.lang.String provider, RateType rateType)
Simple factory method forConversionContext
.static ConversionContext
ConversionContext. of(RateType rateType)
Creates aConversionContext
for accessing rates of the given type, without specifying the rate's provider.Methods in javax.money.convert with parameters of type ConversionContext Modifier and Type Method Description static ConversionContextBuilder
ConversionContextBuilder. of(ConversionContext conversionContext)
Creates a newConversionContextBuilder
instance.Constructors in javax.money.convert with parameters of type ConversionContext Constructor Description CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext)
Constructs anCurrencyConversionException
with the specified source and target currency.CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext, java.lang.String message)
Constructs anCurrencyConversionException
with the specified detail message, timestamp, source and target currency.CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext, java.lang.String message, java.lang.Throwable cause)
Constructs a new exception with the specified source and target currency, detail message and cause.