- All Implemented Interfaces:
public enum RateType extends java.lang.Enum<RateType>
This enumeration defines the different type of rates that can be provided by
.ExchangeRateProviderimplementations. Hereby the rate provider's
ProviderContextcan contain additional information about the rates provided. Similarly, when accessing
CurrencyConversioninstances corresponding attributes can be passed within an (optional)
- Anatole Tresch, Werner Keil
Nested Class Summary
Enum Constant Summary
Enum Constants Enum Constant Description
ANYAny type of rates.
DEFERREDDeferred rates are basically also current rates, but have some fixed delay, e.g.
HISTORICHistoric rates, e.g.
OTHERAny other type of rates.
REALTIMEReal-time rates should be as adequate as possible, basically not more than a few milliseconds late.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
public static final RateType HISTORICHistoric rates, e.g. from the day before or older.
public static final RateType REALTIMEReal-time rates should be as adequate as possible, basically not more than a few milliseconds late.
public static final RateType DEFERREDDeferred rates are basically also current rates, but have some fixed delay, e.g. 20 minutes.
public static final RateType OTHER
public static final RateType ANYAny type of rates. This can be used, where any type of rate is suitable. This may be feasible if you access a specific chain of rate providers, where the order of providers already implies a prioritization and the rate type in that scenario is not relevant.
public static RateType values()Returns an array containing the constants of this enum type, in the order they are declared.
- an array containing the constants of this enum type, in the order they are declared
public static RateType valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
java.lang.NullPointerException- if the argument is null