public enum CurrencyStyle extends 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(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[] values()
for (CurrencyStyle c : CurrencyStyle.values()) System.out.println(c);
public static CurrencyStyle 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 © 2012-2015 JavaMoney. All Rights Reserved.