Package org.javamoney.moneta.convert
Enum ExchangeRateType
- All Implemented Interfaces:
Serializable,Comparable<ExchangeRateType>,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 ConstantsEnum ConstantDescriptionExchange rate to the European Central Bank.Uses theECBHistoricRateProviderimplementation.Exchange rate to European Central Bank (last 90 days).Uses theIdentityRateProviderimplementation.Exchange rate to the International Monetary Fund.Exchange rate to the International Monetary Fund from historic. -
Method Summary
Modifier and TypeMethodDescriptionget()static ExchangeRateTypeReturns 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 interfaceExchangeRateProviderSupplier
-
getDescription
-