java.text.spi
public abstract class NumberFormatProvider extends LocaleServiceProvider
Constructor Summary | |
---|---|
protected | NumberFormatProvider()
Constructs a new NumberFormatProvider.
|
Method Summary | |
---|---|
abstract NumberFormat | getCurrencyInstance(Locale locale)
Returns a NumberFormat instance
for monetary values in the specified
Locale.
|
abstract NumberFormat | getIntegerInstance(Locale locale)
Returns a NumberFormat instance
for integers in the specified Locale.
|
abstract NumberFormat | getNumberInstance(Locale locale)
Returns a general-purpose NumberFormat
instance in the specified Locale.
|
abstract NumberFormat | getPercentInstance(Locale locale)
Returns a NumberFormat instance
for percentage values in the specified
Locale.
|
Parameters: locale the desired locale.
Returns: the localized instance for monetary values.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one
returned by
getAvailableLocales()
See Also: getCurrencyInstance
Parameters: locale the desired locale.
Returns: the localized instance for integers.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one
returned by
getAvailableLocales()
See Also: getIntegerInstance HALF_EVEN isParseIntegerOnly
Parameters: locale the desired locale.
Returns: a general-purpose localized instance.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one
returned by
getAvailableLocales()
See Also: getNumberInstance
Parameters: locale the desired locale.
Returns: the localized instance for percentage values.
Throws: NullPointerException if the locale is null. IllegalArgumentException if the locale is not one
returned by
getAvailableLocales()
See Also: getPercentInstance