| java.lang.Object | ||
| ↳ | org.springframework.format.number.AbstractNumberFormatter | |
| ↳ | org.springframework.format.number.CurrencyFormatter | |
A BigDecimal formatter for currency values.
Delegates to getCurrencyInstance(Locale).
 Configures BigDecimal parsing so there is no loss of precision.
 Can apply a specified RoundingMode to parsed values.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Parse a text String to produce a T. | |||||||||||
| Specify the currency, if known. | |||||||||||
| Specify the desired number of fraction digits. | |||||||||||
| Specify the rounding mode to use for decimal parsing. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Obtain a concrete NumberFormat for the specified locale. | |||||||||||
| [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 | |||||||||||
Parse a text String to produce a T.
| text | the text string | 
|---|---|
| locale | the current user locale | 
| ParseException | 
|---|
Specify the desired number of fraction digits. Default is 2.
Specify the rounding mode to use for decimal parsing.
 Default is UNNECESSARY.
Obtain a concrete NumberFormat for the specified locale.
| locale | the current locale | 
|---|
null)