Class UnlocalizedNumberRangeFormatter

    • Method Detail

      • locale

        public LocalizedNumberRangeFormatter locale​(java.util.Locale locale)
        Associate the given locale with the number range 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 range formatting.
        Returns:
        The fluent chain