public enum ExchangeRateType extends Enum<ExchangeRateType> implements javax.money.convert.ExchangeRateProviderSupplier
This enum contains all implementation of moneta. Using this enum will easier to choose an available implementation.
ExchangeRateProvider provider = MonetaryConversions.getExchangeRateProvider(ExchangeRateType.ECB);| Enum Constant and Description |
|---|
ECB
Deprecated.
Exchange rate to the European Central Bank.
|
ECB_HIST
Deprecated.
Uses the
ECBHistoricRateProvider implementation. |
ECB_HIST90
Deprecated.
Exchange rate to European Central Bank (last 90 days).
|
IDENTITY
Deprecated.
Uses the
IdentityRateProvider implementation. |
IMF
Deprecated.
Exchange rate to the International Monetary Fond.
|
IMF_HIST
Deprecated.
Exchange rate to the International Monetary Fond from historic.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get()
Deprecated.
|
String |
getDescription()
Deprecated.
|
static ExchangeRateType |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ExchangeRateType[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExchangeRateType ECB
ECBCurrentRateProvider implementation.public static final ExchangeRateType IMF
IMFRateProvider implementation.public static final ExchangeRateType IMF_HIST
IMFHistoricRateProvider implementation.public static final ExchangeRateType ECB_HIST90
ECBHistoric90RateProvider implementation.public static final ExchangeRateType ECB_HIST
ECBHistoricRateProvider implementation.public static final ExchangeRateType IDENTITY
IdentityRateProvider implementation.public static ExchangeRateType[] values()
for (ExchangeRateType c : ExchangeRateType.values()) System.out.println(c);
public static ExchangeRateType 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 nullpublic String get()
get in interface javax.money.convert.ExchangeRateProviderSupplierpublic String getDescription()
Copyright © 2012-2016 JavaMoney. All Rights Reserved.