Package org.javamoney.moneta.convert
Enum ExchangeRateType
- All Implemented Interfaces:
Serializable,Comparable<ExchangeRateType>,javax.money.convert.ExchangeRateProviderSupplier
public enum ExchangeRateType extends Enum<ExchangeRateType> implements javax.money.convert.ExchangeRateProviderSupplier
This enum contains all implementations by Moneta. Using this enum will easier to choose an available implementation.
ExchangeRateProvider provider = MonetaryConversions.getExchangeRateProvider(ExchangeRateType.ECB);- Since:
- 1.0.1
- Author:
- otaviojava, Werner Keil
-
Enum Constant Summary
Enum Constants Enum Constant Description ECBExchange rate to the European Central Bank.ECB_HISTUses theECBHistoricRateProviderimplementation.ECB_HIST90Exchange rate to European Central Bank (last 90 days).IDENTITYUses theIdentityRateProviderimplementation.IMFExchange rate to the International Monetary Fund.IMF_HISTExchange rate to the International Monetary Fund from historic. -
Method Summary
Modifier and Type Method Description Stringget()StringgetDescription()static ExchangeRateTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ExchangeRateType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ECB
Exchange rate to the European Central Bank. Uses theECBCurrentRateProviderimplementation. -
IMF
Exchange rate to the International Monetary Fund. Uses theIMFRateProviderimplementation. -
IMF_HIST
Exchange rate to the International Monetary Fund from historic. Uses theIMFHistoricRateProviderimplementation. -
ECB_HIST90
Exchange rate to European Central Bank (last 90 days). Uses theECBHistoric90RateProviderimplementation. -
ECB_HIST
Uses theECBHistoricRateProviderimplementation. -
IDENTITY
Uses theIdentityRateProviderimplementation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
- Specified by:
getin interfacejavax.money.convert.ExchangeRateProviderSupplier
-
getDescription
-