public enum Currency extends Enum<Currency> implements HasName
| Enum Constant and Description |
|---|
AUD
Australian dollar.
|
BRL
Brazilian rea.
|
CAD
Canadian dollar.
|
CHF
Swiss franc.
|
CNY
Chinese yuan renminbi.
|
EUR
European dollar.
|
GBP
Pound sterling.
|
HKD
Hong Kong dollar.
|
IDR
Indonesian rupiah.
|
INR
Indian rupee.
|
JPY
Japanese yen.
|
KRW
South Korean won.
|
MXN
Mexican peso.
|
NOK
Norwegian krone.
|
NONE
None.
|
NZD
New Zealand dollar.
|
PEN
Peruvian new sol.
|
RUB
Russian rouble.
|
SAR
Saudi riyal.
|
SEK
Swedish krona.
|
SGD
Singapore dollar.
|
TRY
Turkish lira.
|
TWD
Taiwanese dollar.
|
USD
US dollar.
|
ZAR
South African rand.
|
| Modifier and Type | Method and Description |
|---|---|
static Currency |
findByName(String name) |
static Currency |
findOrDefault(String name) |
String |
getName() |
static Currency |
valueOf(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 NONE
public static final Currency CAD
public static final Currency HKD
public static final Currency USD
public static final Currency AUD
public static final Currency BRL
public static final Currency CNY
public static final Currency EUR
public static final Currency INR
public static final Currency IDR
public static final Currency JPY
public static final Currency MXN
public static final Currency NZD
public static final Currency NOK
public static final Currency PEN
public static final Currency RUB
public static final Currency SAR
public static final Currency SGD
public static final Currency ZAR
public static final Currency KRW
public static final Currency SEK
public static final Currency CHF
public static final Currency TWD
public static final Currency TRY
public static final Currency GBP
public static Currency[] values()
for (Currency c : Currency.values()) System.out.println(c);
public static Currency 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 nullCopyright © 2023. All rights reserved.