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
ConstructorsConstructorDescriptionSimpleNumberFormatFactory
(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
Modifier and TypeMethodDescriptionReturns an immutable collection of the locale names directly supported by this factory.final boolean
visible()
Returns true if this factory is visible.Methods inherited from class com.ibm.icu.text.NumberFormat.NumberFormatFactory
createFormat, createFormat
-
Constructor Details
-
SimpleNumberFormatFactory
Constructs a SimpleNumberFormatFactory with the given locale. -
SimpleNumberFormatFactory
Constructs a SimpleNumberFormatFactory with the given locale and the visibility. -
SimpleNumberFormatFactory
Constructs a SimpleNumberFormatFactory with the given locale. -
SimpleNumberFormatFactory
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 classNumberFormat.NumberFormatFactory
- Returns:
- true if the factory is visible.
-
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.
-