Package com.ibm.icu.text
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.
-
-
Field Summary
-
Fields inherited from class com.ibm.icu.text.NumberFormat.NumberFormatFactory
FORMAT_CURRENCY, FORMAT_INTEGER, FORMAT_NUMBER, FORMAT_PERCENT, FORMAT_SCIENTIFIC
-
-
Constructor Summary
Constructors Constructor Description SimpleNumberFormatFactory(ULocale locale)
Constructs a SimpleNumberFormatFactory with the given locale.SimpleNumberFormatFactory(ULocale locale, boolean visible)
Constructs a SimpleNumberFormatFactory with the given locale and the visibility.SimpleNumberFormatFactory(Locale locale)
Constructs a SimpleNumberFormatFactory with the given locale.SimpleNumberFormatFactory(Locale locale, boolean visible)
Constructs a SimpleNumberFormatFactory with the given locale and the visibility.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getSupportedLocaleNames()
Returns an immutable collection of the locale names directly supported by this factory.boolean
visible()
Returns true if this factory is visible.-
Methods inherited from class com.ibm.icu.text.NumberFormat.NumberFormatFactory
createFormat, createFormat
-
-
-
-
Constructor Detail
-
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 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 classNumberFormat.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 classNumberFormat.NumberFormatFactory
- Returns:
- the supported locale names.
-
-