Package velox.gui.utils.localization
Enum Class NumberFormatStyle
- All Implemented Interfaces:
Serializable,Comparable<NumberFormatStyle>,Constable
Simple translation of constant fields of the
NumberFormat class to enum.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConstant to specify currency style of format which uses currency symbol to represent currency for accounting, for example: "($3.00), instead of "-$3.00" (CURRENCY_STYLE).Constant to specify currency style of format which uses currency symbol to represent currency for accounting, for example: "($3.00), instead of "-$3.00" (CURRENCYSTYLE).Constant to specify general currency style of format.Constant to specify a integer number style format.Constant to specify currency style of format which uses currency ISO code to represent currency, for example: "USD3.00".Constant to specify normal number style of format.Constant to specify a style of format to display percent.Constant to specify currency style of format which uses currency long name with plural format to represent currency, for example, "3.00 US Dollars".Constant to specify a style of format to display scientific number.Constant to specify currency style of format which uses currency symbol to represent currency, for example "$3.00", using non-accounting style for negative values (e.g. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberFormatStyleReturns the enum constant of this class with the specified name.static NumberFormatStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ISO_CURRENCY_STYLE
Constant to specify currency style of format which uses currency ISO code to represent currency, for example: "USD3.00". -
STANDARD_CURRENCY_STYLE
Constant to specify currency style of format which uses currency symbol to represent currency, for example "$3.00", using non-accounting style for negative values (e.g. minus sign). -
ACCOUNTING_CURRENCY_STYLE
Constant to specify currency style of format which uses currency symbol to represent currency for accounting, for example: "($3.00), instead of "-$3.00" (CURRENCY_STYLE). -
CASH_CURRENCY_STYLE
Constant to specify currency style of format which uses currency symbol to represent currency for accounting, for example: "($3.00), instead of "-$3.00" (CURRENCYSTYLE). -
PLURAL_CURRENCY_STYLE
Constant to specify currency style of format which uses currency long name with plural format to represent currency, for example, "3.00 US Dollars". -
CURRENCY_STYLE
Constant to specify general currency style of format. -
INTEGER_STYLE
Constant to specify a integer number style format. -
NUMBER_STYLE
Constant to specify normal number style of format. -
PERCENT_STYLE
Constant to specify a style of format to display percent. -
SCIENTIFIC_STYLE
Constant to specify a style of format to display scientific number.
-
-
Field Details
-
index
public final int index
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-