java.lang.Object | ||
↳ | java.util.spi.LocaleServiceProvider | |
↳ | java.text.spi.NumberFormatProvider |
An abstract class for service providers that
provide concrete implementations of the
NumberFormat
class.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sole constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a new
NumberFormat instance which formats
monetary values for the specified locale. | |||||||||||
Returns a new
NumberFormat instance which formats
integer values for the specified locale. | |||||||||||
Returns a new general-purpose
NumberFormat instance for
the specified locale. | |||||||||||
Returns a new
NumberFormat instance which formats
percentage values for the specified locale. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.spi.LocaleServiceProvider
| |||||||||||
From class
java.lang.Object
|
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Returns a new NumberFormat
instance which formats
monetary values for the specified locale.
locale | the desired locale. |
---|
NullPointerException | if locale is null |
---|---|
IllegalArgumentException | if locale isn't
one of the locales returned from
getAvailableLocales() . |
Returns a new NumberFormat
instance which formats
integer values for the specified locale.
The returned number format is configured to
round floating point numbers to the nearest integer using
half-even rounding (see HALF_EVEN
)
for formatting, and to parse only the integer part of
an input string (see isParseIntegerOnly
).
locale | the desired locale |
---|
NullPointerException | if locale is null |
---|---|
IllegalArgumentException | if locale isn't
one of the locales returned from
getAvailableLocales() . |
Returns a new general-purpose NumberFormat
instance for
the specified locale.
locale | the desired locale |
---|
NullPointerException | if locale is null |
---|---|
IllegalArgumentException | if locale isn't
one of the locales returned from
getAvailableLocales() . |
Returns a new NumberFormat
instance which formats
percentage values for the specified locale.
locale | the desired locale |
---|
NullPointerException | if locale is null |
---|---|
IllegalArgumentException | if locale isn't
one of the locales returned from
getAvailableLocales() . |