Class NumberFormat.SimpleNumberFormatFactory

java.lang.Object
com.ibm.icu.text.NumberFormat.NumberFormatFactory
com.ibm.icu.text.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 Details

    • SimpleNumberFormatFactory

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

      public SimpleNumberFormatFactory(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 Details

    • 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 Set<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.