Package com.ibm.icu.util
Enum Currency.CurrencyUsage
- java.lang.Object
-
- java.lang.Enum<Currency.CurrencyUsage>
-
- com.ibm.icu.util.Currency.CurrencyUsage
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Currency.CurrencyUsage>
- Enclosing class:
- Currency
public static enum Currency.CurrencyUsage extends java.lang.Enum<Currency.CurrencyUsage>
Currency Usage used for Decimal Format
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASH
a setting to specify currency usage which determines currency digit and rounding for cash usage, for example: "50 NT$"STANDARD
a setting to specify currency usage which determines currency digit and rounding for standard usage, for example: "50.00 NT$"
-
Constructor Summary
Constructors Modifier Constructor Description private
CurrencyUsage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Currency.CurrencyUsage
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Currency.CurrencyUsage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final Currency.CurrencyUsage STANDARD
a setting to specify currency usage which determines currency digit and rounding for standard usage, for example: "50.00 NT$"
-
CASH
public static final Currency.CurrencyUsage CASH
a setting to specify currency usage which determines currency digit and rounding for cash usage, for example: "50 NT$"
-
-
Method Detail
-
values
public static Currency.CurrencyUsage[] 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 (Currency.CurrencyUsage c : Currency.CurrencyUsage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Currency.CurrencyUsage valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-