Class NumberFormat.SimpleNumberFormatFactory
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.text.NumberFormat.NumberFormatFactory
org.graalvm.shadowed.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 org.graalvm.shadowed.com.ibm.icu.text.NumberFormat.NumberFormatFactory
FORMAT_CURRENCY, FORMAT_INTEGER, FORMAT_NUMBER, FORMAT_PERCENT, FORMAT_SCIENTIFIC -
Constructor Summary
ConstructorsConstructorDescriptionSimpleNumberFormatFactory(Locale locale) Constructs a SimpleNumberFormatFactory with the given locale.SimpleNumberFormatFactory(Locale locale, boolean visible) Constructs a SimpleNumberFormatFactory with the given locale and the visibility.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns an immutable collection of the locale names directly supported by this factory.final booleanvisible()Returns true if this factory is visible.Methods inherited from class org.graalvm.shadowed.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:
visiblein 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:
getSupportedLocaleNamesin classNumberFormat.NumberFormatFactory- Returns:
- the supported locale names.
-