Top Description Fields Constructors Methods
org.javamoney.moneta.format

public final Enum CurrencyStyle

extends Enum<CurrencyStyle>
Class Inheritance

Defines the different variants of currency formatting.
Authors
Anatole Tresch, Werner Keil

Field Summary

Modifier and TypeField and Description
public static final CurrencyStyle
CODE

The currency will be rendered as its (non localized) currency code.

public static final CurrencyStyle
NAME

The currency will be rendered as its localized display name.

public static final CurrencyStyle
NUMERIC_CODE

The currency will be rendered as its (non localized) numeric code.

public static final CurrencyStyle
SYMBOL

The currency will be rendered as its localized currency symbol.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static CurrencyStyle
public static CurrencyStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CODEback to summary
public static final CurrencyStyle CODE

The currency will be rendered as its (non localized) currency code.

See Also
javax.money.CurrencyUnit#getCurrencyCode()
NAMEback to summary
public static final CurrencyStyle NAME

The currency will be rendered as its localized display name. If no display name is known for the required javax.money.CurrencyUnit, the currency code should be used as a fall-back.

See Also
javax.money.CurrencyUnit#getCurrencyCode(), java.util.Currency#getDisplayName(java.util.Locale)
NUMERIC_CODEback to summary
public static final CurrencyStyle NUMERIC_CODE

The currency will be rendered as its (non localized) numeric code.

See Also
javax.money.CurrencyUnit#getNumericCode()
SYMBOLback to summary
public static final CurrencyStyle SYMBOL

The currency will be rendered as its localized currency symbol. If no symbol name is known for the required javax.money.CurrencyUnit, the currency code should be used as a fall-back.

See Also
javax.money.CurrencyUnit#getCurrencyCode(), java.util.Currency#getSymbol(java.util.Locale)

Constructor Detail

CurrencyStyleback to summary
private CurrencyStyle()

Method Detail

valueOfback to summary
public static CurrencyStyle valueOf(String name)
valuesback to summary
public static CurrencyStyle[] values()