com.ibm.icu.text
public abstract static class NumberFormat.NumberFormatFactory extends Object
Note: as of ICU4J 3.2, the default API for NumberFormatFactory uses ULocale instead of Locale. Instead of overriding createFormat(Locale, int), new implementations should override createFactory(ULocale, int). Note that one of these two methods MUST be overridden or else an infinite loop will occur.
UNKNOWN: ICU 2.6
Field Summary | |
---|---|
static int | FORMAT_CURRENCY
Value passed to format requesting a currency format. |
static int | FORMAT_INTEGER
Value passed to format requesting an integer format. |
static int | FORMAT_NUMBER
Value passed to format requesting a default number format. |
static int | FORMAT_PERCENT
Value passed to format requesting a percent format. |
static int | FORMAT_SCIENTIFIC
Value passed to format requesting a scientific format. |
Constructor Summary | |
---|---|
protected | NumberFormatFactory() |
Method Summary | |
---|---|
NumberFormat | createFormat(ULocale loc, int formatType)
Returns a number format of the appropriate type. |
NumberFormat | createFormat(Locale loc, int formatType)
Returns a number format of the appropriate type. |
abstract Set | getSupportedLocaleNames()
Returns an immutable collection of the locale names directly
supported by this factory. |
boolean | visible()
Returns true if this factory is visible. |
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.6
UNKNOWN: ICU 2.6
Parameters: loc the locale for which to create the format formatType the type of format
Returns: the NumberFormat, or null.
UNKNOWN: ICU 3.2 This API might change or be removed in a future release.
Parameters: loc the locale for which to create the format formatType the type of format
Returns: the NumberFormat, or null.
UNKNOWN: ICU 2.6
Returns: the supported locale names.
UNKNOWN: ICU 2.6
Returns: true if the factory is visible.
UNKNOWN: ICU 2.6