Package | Description |
---|---|
javax.money.convert |
Defines the monetary currency conversion API.
|
Modifier and Type | Method and Description |
---|---|
RateType |
ConversionContext.getRateType()
Get the deferred flag.
|
static RateType |
RateType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RateType[] |
RateType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<RateType> |
ProviderContext.getRateTypes()
Get the deferred flag.
|
Modifier and Type | Method and Description |
---|---|
void |
ProviderContext.addRateTypes(RateType... rateTypes)
Add the given
RateType to this context builder. |
static ConversionContext |
ConversionContext.of(RateType rateType)
Creates a
ConversionContext for accessing rates of the given
type, without specifying the rate's provider. |
static ProviderContext |
ProviderContext.of(java.lang.String provider,
RateType... rateTypes)
Creates a new ProviderContext based on the provider id and rate type(s).
|
static ConversionContext |
ConversionContext.of(java.lang.String provider,
RateType rateType)
Simple factory method for
ConversionContext . |
static ConversionContext |
ConversionContext.of(java.lang.String provider,
RateType rateType,
java.lang.Long timestamp)
|
ConversionContext.Builder |
ConversionContext.Builder.setRateType(RateType rateType)
Set the historic value.
|
ProviderContext.Builder |
ProviderContext.Builder.setRateTypes(RateType... rateTypes)
Set the rate types.
|
Constructor and Description |
---|
ConversionContext.Builder(ProviderContext context,
RateType rateType)
Create a new Builder, hereby using the given
ConversionContext 's values as defaults. |
ExchangeRate.Builder(java.lang.String provider,
RateType rateType)
Sets the exchange rate type
|