Enum NumberFormat

    • Enum Constant Detail

      • COMMA_AS_DECIMAL

        public static final NumberFormat COMMA_AS_DECIMAL
      • PERIOD_AS_DECIMAL

        public static final NumberFormat PERIOD_AS_DECIMAL
    • Method Detail

      • values

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

        public static NumberFormat 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
      • fromDecimalSeparator

        public static NumberFormat fromDecimalSeparator​(char decimalSeparator)
        Returns the format for the given decimal separator, or throws IllegalArgumentException if there's no match
      • getDecimalSeparator

        public char getDecimalSeparator()
      • getGroupingSeparator

        public char getGroupingSeparator()