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(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 |
---|---|
Set<RateType> |
ProviderContext.getRateTypes()
Get the deferred flag.
|
Set<RateType> |
ConversionQuery.getRateTypes()
Get the rate types set.
|
Modifier and Type | Method and Description |
---|---|
static ConversionContextBuilder |
ConversionContextBuilder.create(ProviderContext context,
RateType rateType)
Create a new Builder, hereby using the given
ConversionContext 's values as defaults. |
static ConversionContext |
ConversionContext.from(ProviderContext providerContext,
RateType rateType)
Creates a new ConversionContext for the given
ProviderContext and the given RateType . |
static ConversionContext |
ConversionContext.of(RateType rateType)
Creates a
ConversionContext for accessing rates of the given
type, without specifying the rate's provider. |
static ConversionContext |
ConversionContext.of(String provider,
RateType rateType)
Simple factory method for
ConversionContext . |
static ProviderContextBuilder |
ProviderContextBuilder.of(String provider,
RateType rateType,
RateType... rateTypes)
Create a new ProviderContextBuilder instance.
|
static ProviderContextBuilder |
ProviderContextBuilder.of(String provider,
RateType rateType,
RateType... rateTypes)
Create a new ProviderContextBuilder instance.
|
static ProviderContext |
ProviderContext.of(String provider,
RateType rateType,
RateType... rateTypes)
Creates a new ProviderContext based on the provider id and rate type(s).
|
static ProviderContext |
ProviderContext.of(String provider,
RateType rateType,
RateType... rateTypes)
Creates a new ProviderContext based on the provider id and rate type(s).
|
ConversionContextBuilder |
ConversionContextBuilder.setRateType(RateType rateType)
Set the historic value.
|
ProviderContextBuilder |
ProviderContextBuilder.setRateTypes(RateType... rateTypes)
Set the rate types.
|
ConversionQueryBuilder |
ConversionQueryBuilder.setRateTypes(RateType... rateTypes)
Set the providers to be considered.
|
Modifier and Type | Method and Description |
---|---|
static ProviderContextBuilder |
ProviderContextBuilder.of(String provider,
Collection<RateType> rateTypes)
Create a new ProviderContextBuilder instance.
|
ProviderContextBuilder |
ProviderContextBuilder.setRateTypes(Collection<RateType> rateTypes)
Set the rate types.
|
ConversionQueryBuilder |
ConversionQueryBuilder.setRateTypes(Set<RateType> rateTypes)
Set the providers to be considered.
|
Copyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.