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