Enum CurrencyDisplay

    • Enum Constant Detail

      • SYMBOL

        public static final CurrencyDisplay SYMBOL
        To use a localized currency symbol such as €, this is the default value.
      • NARROW_SYMBOL

        public static final CurrencyDisplay NARROW_SYMBOL
        To use a narrow format symbol ("$100" rather than "US$100").
      • CODE

        public static final CurrencyDisplay CODE
        To use the ISO currency code.
      • NAME

        public static final CurrencyDisplay NAME
        To use a localized currency name such as "dollar".
    • Method Detail

      • values

        public static CurrencyDisplay[] 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 (CurrencyDisplay c : CurrencyDisplay.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CurrencyDisplay 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
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property