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.
- Author:
- Mark Davis, Helena Shih, Alan Liu
- Status:
- Stable ICU 2.6.
-
Field Summary
Fields inherited from class NumberFormat.NumberFormatFactory
FORMAT_CURRENCY, FORMAT_INTEGER, FORMAT_NUMBER, FORMAT_PERCENT, FORMAT_SCIENTIFICModifier and TypeFieldDescriptionstatic final intValue passed to format requesting a currency format.static final intValue passed to format requesting an integer format.static final intValue passed to format requesting a default number format.static final intValue passed to format requesting a percent format.static final intValue passed to format requesting a scientific format. -
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 booleanvisible()Returns true if this factory is visible.Methods inherited from class NumberFormat.NumberFormatFactory
createFormat, createFormatModifier and TypeMethodDescriptioncreateFormat(ULocale loc, int formatType) Returns a number format of the appropriate type.createFormat(Locale loc, int formatType) Returns a number format of the appropriate type.
-
Constructor Details
-
SimpleNumberFormatFactory
Constructs a SimpleNumberFormatFactory with the given locale.- Status:
- Stable ICU 2.6.
-
SimpleNumberFormatFactory
Constructs a SimpleNumberFormatFactory with the given locale and the visibility.- Status:
- Stable ICU 2.6.
-
SimpleNumberFormatFactory
Constructs a SimpleNumberFormatFactory with the given locale.- Status:
- Stable ICU 3.2.
-
SimpleNumberFormatFactory
Constructs a SimpleNumberFormatFactory with the given locale and the visibility.- Status:
- Stable ICU 3.2.
-
-
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.
- Status:
- Stable ICU 2.6.
-
getSupportedLocaleNames
Returns an immutable collection of the locale names directly supported by this factory.- Specified by:
getSupportedLocaleNamesin classNumberFormat.NumberFormatFactory- Returns:
- the supported locale names.
- Status:
- Stable ICU 2.6.
-