Class NumberFormat.SimpleNumberFormatFactory

  • Enclosing class:
    NumberFormat

    public abstract static class NumberFormat.SimpleNumberFormatFactory
    extends NumberFormat.NumberFormatFactory
    A NumberFormatFactory that supports a single locale. It can be visible or invisible.
    • Constructor Detail

      • SimpleNumberFormatFactory

        public SimpleNumberFormatFactory​(java.util.Locale locale)
        Constructs a SimpleNumberFormatFactory with the given locale.
      • SimpleNumberFormatFactory

        public SimpleNumberFormatFactory​(java.util.Locale locale,
                                         boolean visible)
        Constructs a SimpleNumberFormatFactory with the given locale and the visibility.
      • SimpleNumberFormatFactory

        public SimpleNumberFormatFactory​(ULocale locale)
        Constructs a SimpleNumberFormatFactory with the given locale.
      • SimpleNumberFormatFactory

        public SimpleNumberFormatFactory​(ULocale locale,
                                         boolean visible)
        Constructs a SimpleNumberFormatFactory with the given locale and the visibility.
    • Method Detail

      • visible

        public final boolean visible()
        Returns true if this factory is visible. Default is true. If not visible, the locales supported by this factory will not be listed by getAvailableLocales. This value must not change.
        Overrides:
        visible in class NumberFormat.NumberFormatFactory
        Returns:
        true if the factory is visible.
      • getSupportedLocaleNames

        public final java.util.Set<java.lang.String> getSupportedLocaleNames()
        Returns an immutable collection of the locale names directly supported by this factory.
        Specified by:
        getSupportedLocaleNames in class NumberFormat.NumberFormatFactory
        Returns:
        the supported locale names.