Enum 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 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 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