| Package | Description |
|---|---|
| javax.money.convert |
Defines the monetary currency conversion API.
|
| Modifier and Type | Field | Description |
|---|---|---|
static ConversionContext |
ConversionContext.ANY_CONVERSION |
ConversionContext that queries any conversion available.
|
static ConversionContext |
ConversionContext.DEFERRED_CONVERSION |
ConversionContext quering for any deferred rates.
|
static ConversionContext |
ConversionContext.HISTORIC_CONVERSION |
ConversionContext quering for any historic rates.
|
static ConversionContext |
ConversionContext.OTHER_CONVERSION |
ConversionContext quering for any other rates.
|
static ConversionContext |
ConversionContext.REALTIME_CONVERSION |
ConversionContext quering for real-time rates.
|
| Modifier and Type | Method | Description |
|---|---|---|
ConversionContext |
ConversionContextBuilder.build() |
Creates a new
ConversionContext with the data from this
Builder instance. |
static ConversionContext |
ConversionContext.from(ProviderContext providerContext,
RateType rateType) |
Creates a new ConversionContext for the given
ProviderContext and the given RateType. |
ConversionContext |
CurrencyConversion.getContext() |
Access the target
ConversionContext of this conversion instance. |
ConversionContext |
ExchangeRate.getContext() |
Access the
ConversionContext of ExchangeRate. |
ConversionContext |
CurrencyConversionException.getConversionContext() |
Gets the queried timestamp at fault.
|
static ConversionContext |
ConversionContext.of() |
Simple factory method for
ConversionContext. |
static ConversionContext |
ConversionContext.of(String provider,
RateType rateType) |
Simple factory method for
ConversionContext. |
static ConversionContext |
ConversionContext.of(RateType rateType) |
Creates a
ConversionContext for accessing rates of the given
type, without specifying the rate's provider. |
| Modifier and Type | Method | Description |
|---|---|---|
static ConversionContextBuilder |
ConversionContextBuilder.of(ConversionContext conversionContext) |
Creates a new
ConversionContextBuilder instance. |
| Constructor | Description |
|---|---|
CurrencyConversionException(CurrencyUnit base,
CurrencyUnit term,
ConversionContext conversionContext) |
Constructs an
CurrencyConversionException with the specified
source and target currency. |
CurrencyConversionException(CurrencyUnit base,
CurrencyUnit term,
ConversionContext conversionContext,
String message) |
Constructs an
CurrencyConversionException with the specified
detail message, timestamp, source and target currency. |
CurrencyConversionException(CurrencyUnit base,
CurrencyUnit term,
ConversionContext conversionContext,
String message,
Throwable cause) |
Constructs a new exception with the specified source and target currency,
detail message and cause.
|
Copyright © 2012–2018 JSR 354 - Expert Group. All rights reserved.