public enum Currency extends java.lang.Enum<Currency> implements EnumConverter<Currency>
Enum Constant and Description |
---|
AUD |
BRL |
CAD |
CHF |
CNY |
EUR |
GBP |
GEL |
HKD |
INR |
JPY |
KRW |
MXN |
NOK |
NZD |
RUB |
SEK |
SGD |
TRY |
UAH |
USD |
ZAR |
Modifier and Type | Method and Description |
---|---|
static Currency |
from(java.lang.String value) |
java.lang.String |
to(Currency v) |
static Currency |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Currency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Currency USD
public static final Currency EUR
public static final Currency JPY
public static final Currency GBP
public static final Currency AUD
public static final Currency CAD
public static final Currency CHF
public static final Currency CNY
public static final Currency SEK
public static final Currency NZD
public static final Currency MXN
public static final Currency SGD
public static final Currency HKD
public static final Currency NOK
public static final Currency KRW
public static final Currency TRY
public static final Currency RUB
public static final Currency INR
public static final Currency BRL
public static final Currency ZAR
public static final Currency GEL
public static final Currency UAH
public static Currency[] values()
for (Currency c : Currency.values()) System.out.println(c);
public static Currency valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Currency from(java.lang.String value)
public java.lang.String to(Currency v)
to
in interface EnumConverter<Currency>