Top Description Fields Constructors Methods
javax.money.convert

public final Enum RateType

extends Enum<RateType>
Class Inheritance

This enumeration defines the different type of rates that can be provided by .ExchangeRateProvider implementations. Hereby the rate provider's javax.money.convert.ProviderContext can contain additional information about the rates provided. Similarly, when accessing .ExchangeRateProvider or javax.money.convert.CurrencyConversion instances corresponding attributes can be passed within an (optional) javax.money.convert.ConversionContext.
Authors
Anatole Tresch, Werner Keil

Field Summary

Modifier and TypeField and Description
public static final RateType
ANY

Any type of rates.

public static final RateType
DEFERRED

Deferred rates are basically also current rates, but have some fixed delay, e.g. 20 minutes.

public static final RateType
HISTORIC

Historic rates, e.g. from the day before or older.

public static final RateType
OTHER

Any other type of rates.

public static final RateType
REALTIME

Real-time rates should be as adequate as possible, basically not more than a few milliseconds late.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static RateType
public static RateType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ANYback to summary
public static final RateType ANY

Any 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.

DEFERREDback to summary
public static final RateType DEFERRED

Deferred rates are basically also current rates, but have some fixed delay, e.g. 20 minutes.

HISTORICback to summary
public static final RateType HISTORIC

Historic rates, e.g. from the day before or older.

OTHERback to summary
public static final RateType OTHER

Any other type of rates. You may use the javax.money.convert.ProviderContext, javax.money.convert.ConversionContext to define additional details.

REALTIMEback to summary
public static final RateType REALTIME

Real-time rates should be as adequate as possible, basically not more than a few milliseconds late.

Constructor Detail

RateTypeback to summary
private RateType()

Method Detail

valueOfback to summary
public static RateType valueOf(String name)
valuesback to summary
public static RateType[] values()