public enum RateType extends Enum<RateType>
.ExchangeRateProvider
implementations. Hereby the rate provider's ProviderContext
can
contain
additional information about the rates provided. Similarly, 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 delay, e.g.
|
HISTORIC
Historic rates, e.g.
|
OTHER
Any other type of rates.
|
REALTIME
Real-time rates should be as adequate as possible, basically not more than a few milliseconds late.
|
Modifier and Type | Method and Description |
---|---|
static RateType |
valueOf(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 HISTORIC
public static final RateType REALTIME
public static final RateType DEFERRED
public static final RateType OTHER
ProviderContext
,
ConversionContext
to define additional details.public static final RateType ANY
public static RateType[] values()
for (RateType c : RateType.values()) System.out.println(c);
public static RateType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.