Class UnlocalizedNumberFormatter

    • Constructor Detail

      • UnlocalizedNumberFormatter

        UnlocalizedNumberFormatter()
        Base constructor; called during startup only. Sets the threshold to the default value of 3.
      • UnlocalizedNumberFormatter

        UnlocalizedNumberFormatter​(NumberFormatterSettings<?> parent,
                                   int key,
                                   java.lang.Object value)
    • Method Detail

      • locale

        public LocalizedNumberFormatter locale​(java.util.Locale locale)
        Associate the given locale with the number formatter. The locale is used for picking the appropriate symbols, formats, and other data for number display.

        To use the Java default locale, call Locale.getDefault():

         NumberFormatter.with(). ... .locale(Locale.getDefault())
         
        Parameters:
        locale - The locale to use when loading data for number formatting.
        Returns:
        The fluent chain