| java.lang.Object | ||
| ↳ | org.springframework.format.number.AbstractNumberFormatter | |
| ↳ | org.springframework.format.number.NumberFormatter | |
A general-purpose Number formatter.
Delegates to getInstance(Locale).
 Configures BigDecimal parsing so there is no loss in precision.
 Allows configuration over the decimal number pattern.
 The parse(String, Locale) routine always returns a BigDecimal.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Create a new NumberFormatter without a pattern. | |||||||||||
| Create a new NumberFormatter with the specified pattern. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Obtain a concrete NumberFormat for the specified locale. | |||||||||||
| Sets the pattern to use to format number values. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  org.springframework.format.number.AbstractNumberFormatter | |||||||||||
|  From class
  java.lang.Object | |||||||||||
|  From interface
  org.springframework.format.Parser | |||||||||||
|  From interface
  org.springframework.format.Printer | |||||||||||
Create a new NumberFormatter without a pattern.
Create a new NumberFormatter with the specified pattern.
| pattern | the format pattern | 
|---|
Obtain a concrete NumberFormat for the specified locale.
| locale | the current locale | 
|---|
null)
Sets the pattern to use to format number values. If not specified, the default DecimalFormat pattern is used.