Enum CurrencySign
- java.lang.Object
-
- java.lang.Enum<CurrencySign>
-
- org.pepstock.charba.client.intl.enums.CurrencySign
-
- All Implemented Interfaces:
Serializable
,Comparable<CurrencySign>
,Key
public enum CurrencySign extends Enum<CurrencySign> implements Key
In many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign.
You can enable this formatting you can use "accounting".
The default value is "standard".- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNTING
To use for wrapping the number with parentheses instead of appending a minus sign.STANDARD
To use a standard accounting formatting.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic CurrencySign
valueOf(String name)
Returns the enum constant of this type with the specified name.static CurrencySign[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCOUNTING
public static final CurrencySign ACCOUNTING
To use for wrapping the number with parentheses instead of appending a minus sign.
-
STANDARD
public static final CurrencySign STANDARD
To use a standard accounting formatting.
-
-
Method Detail
-
values
public static CurrencySign[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CurrencySign c : CurrencySign.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CurrencySign valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-