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
Exchange rate to the European Central Bank.
|
ECB_HIST
Uses the
ECBHistoricRateProvider implementation. |
ECB_HIST90
Exchange rate to European Central Bank (last 90 days).
|
IDENTITY
Uses the
IdentityRateProvider implementation. |
IMF
Exchange rate to the International Monetary Fond.
|
Modifier and Type | Method and Description |
---|---|
String |
get() |
String |
getDescription() |
static ExchangeRateType |
valueOf(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.
|
public static final ExchangeRateType ECB
ECBCurrentRateProvider
implementation.public static final ExchangeRateType IMF
IMFRateProvider
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.ExchangeRateProviderSupplier
public String getDescription()
Copyright © 2012-2015 JavaMoney. All Rights Reserved.