Enum Currency.CurrencyUsage

java.lang.Object
java.lang.Enum<Currency.CurrencyUsage>
com.ibm.icu.util.Currency.CurrencyUsage
All Implemented Interfaces:
Serializable, Comparable<Currency.CurrencyUsage>, java.lang.constant.Constable
Enclosing class:
Currency

public static enum Currency.CurrencyUsage extends Enum<Currency.CurrencyUsage>
Currency Usage used for Decimal Format
  • Enum Constant Details

    • 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 Details

    • values

      public static Currency.CurrencyUsage[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Currency.CurrencyUsage 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 name
      NullPointerException - if the argument is null