This enum contains all implementations by Moneta. Using this enum will easier to choose an available implementation.
ExchangeRateProvider provider = MonetaryConversions.getExchangeRateProvider(ExchangeRateType.ECB);
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final ExchangeRateType | ECB
Exchange rate to the European Central Bank. |
| public static final ExchangeRateType | ECB_HIST
Uses the |
| public static final ExchangeRateType | ECB_HIST90
Exchange rate to European Central Bank (last 90 days). |
| public static final ExchangeRateType | IDENTITY
Uses the |
| public static final ExchangeRateType | IMF
Exchange rate to the International Monetary Fund. |
| public static final ExchangeRateType | IMF_HIST
Exchange rate to the International Monetary Fund from historic. |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public static ExchangeRateType | |
| public static ExchangeRateType[] |
| description | back to summary |
|---|---|
| private final String description | |
| ECB | back to summary |
|---|---|
| public static final ExchangeRateType ECB Exchange rate to the European Central Bank. Uses the
| |
| ECB_HIST | back to summary |
|---|---|
| public static final ExchangeRateType ECB_HIST Uses the | |
| ECB_HIST90 | back to summary |
|---|---|
| public static final ExchangeRateType ECB_HIST90 Exchange rate to European Central Bank (last 90 days). Uses the
| |
| IDENTITY | back to summary |
|---|---|
| public static final ExchangeRateType IDENTITY Uses the | |
| IMF | back to summary |
|---|---|
| public static final ExchangeRateType IMF Exchange rate to the International Monetary Fund. Uses the
| |
| IMF_HIST | back to summary |
|---|---|
| public static final ExchangeRateType IMF_HIST Exchange rate to the International Monetary Fund from historic. Uses the
| |
| type | back to summary |
|---|---|
| private final String type | |
| ExchangeRateType | back to summary |
|---|---|
| private ExchangeRateType(String type, String description) | |
| get | back to summary |
|---|---|
| public String get() Implements javax. Doc from javax. Get the provider name. This signature equals to the signature of java.util.function.Supplier in Java 8.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() | |
| valueOf | back to summary |
|---|---|
| public static ExchangeRateType valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ExchangeRateType[] values() | |