public enum RateType extends java.lang.Enum<RateType>
.ExchangeRateProvider
implementations. Hereby the rate provider's ProviderContext
can
contain
additional information about the rates provided. Similary, when accessing .ExchangeRateProvider
or CurrencyConversion
instances corresponding attributes can
be passed within an (optional) ConversionContext
.Enum Constant and Description |
---|
ANY
Any type of rates.
|
DEFERRED
Deferred rates are basically also current rates, but have some fixed dely, e.g. 20 minutes.
|
HISTORIC
Historic rates, e.g. from the day before or older.
|
OTHER
Any other type of rates.
|
REALTIME
Realtime rates should be as adequate as possible, basically not more than a few milliseconds late.
|
Modifier and Type | Method and Description |
---|---|
static RateType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RateType ANY
MonetaryConversions.getConversion(String,
ConversionContext, String...)
,
where the order of providers already implies a prioritization and the rate type in that scenario is not relevant.public static final RateType DEFERRED
public static final RateType HISTORIC
public static final RateType OTHER
ProviderContext
,
ConversionContext
to define additional details.public static final RateType REALTIME
public static RateType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static RateType[] values()
for (RateType c : RateType.values()) System.out.println(c);