public class PercentFormatter extends AbstractNumberFormatter
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 and Description |
---|
PercentFormatter() |
Modifier and Type | Method and Description |
---|---|
protected java.text.NumberFormat |
getNumberFormat(java.util.Locale locale)
Obtain a concrete NumberFormat for the specified locale.
|
parse, print, setLenient
protected java.text.NumberFormat getNumberFormat(java.util.Locale locale)
AbstractNumberFormatter
getNumberFormat
in class AbstractNumberFormatter
locale
- the current localenull
)