public enum CurrencyStyle extends java.lang.Enum<CurrencyStyle>
| Enum Constant and Description |
|---|
CODE
The currency will be rendered as its (non localized) currency code.
|
NAME
The currency will be rendered as its localized display name.
|
NUMERIC_CODE
The currency will be rendered as its (non localized) numeric code.
|
SYMBOL
The currency will be rendered as its localized currency symbol.
|
| Modifier and Type | Method and Description |
|---|---|
static CurrencyStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CurrencyStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurrencyStyle CODE
CurrencyUnit.getCurrencyCode()public static final CurrencyStyle NAME
CurrencyUnit, the currency code
should be used as a fall-back.CurrencyUnit.getCurrencyCode(),
Currency.getDisplayName(java.util.Locale)public static final CurrencyStyle NUMERIC_CODE
CurrencyUnit.getNumericCode()public static final CurrencyStyle SYMBOL
CurrencyUnit, the currency
code should be used as a fall-back.CurrencyUnit.getCurrencyCode(),
Currency.getSymbol(java.util.Locale)public static CurrencyStyle 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 CurrencyStyle[] values()
for (CurrencyStyle c : CurrencyStyle.values()) System.out.println(c);