|
spring-context | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.format.number.AbstractNumberFormatter
org.springframework.format.number.PercentFormatter
public class PercentFormatter
A Number formatter for percent values.
Delegates to NumberFormat.getPercentInstance(Locale).
Configures BigDecimal parsing so there is no loss in precision.
The AbstractNumberFormatter.parse(String, Locale) routine always returns a BigDecimal.
AbstractNumberFormatter.setLenient(boolean)| Constructor Summary | |
|---|---|
PercentFormatter()
|
|
| Method Summary | |
|---|---|
protected java.text.NumberFormat |
getNumberFormat(java.util.Locale locale)
Obtain a concrete NumberFormat for the specified locale. |
| Methods inherited from class org.springframework.format.number.AbstractNumberFormatter |
|---|
parse, print, setLenient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PercentFormatter()
| Method Detail |
|---|
protected java.text.NumberFormat getNumberFormat(java.util.Locale locale)
AbstractNumberFormatter
getNumberFormat in class AbstractNumberFormatterlocale - the current locale
null)
|
spring-context | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||