public enum Currency extends Enum<Currency>
| Enum Constant and Description |
|---|
CNH
RMB
|
HKD
Hong Kong dollar
|
USD
US Dollar
|
| Modifier and Type | Method and Description |
|---|---|
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 CNH
public static final Currency HKD
public static final Currency USD
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 © 2025 Webull. All rights reserved.