Delegates to java..
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.
setPattern, setLenient
| Access | Constructor and Description |
|---|---|
| public | |
| public | NumberStyleFormatter(String
the format pattern pattern)Create a new NumberStyleFormatter with the specified pattern. |
| Modifier and Type | Method and Description |
|---|---|
| public NumberFormat | getNumberFormat(Locale
the current locale locale)Implements abstract org. Obtain a concrete NumberFormat for the specified locale. |
| public void |
| pattern | back to summary |
|---|---|
| private String pattern
| |
| NumberStyleFormatter | back to summary |
|---|---|
| public NumberStyleFormatter() Create a new NumberStyleFormatter without a pattern. | |
| NumberStyleFormatter | back to summary |
|---|---|
| public NumberStyleFormatter(String pattern) Create a new NumberStyleFormatter with the specified pattern.
| |
| getNumberFormat | back to summary |
|---|---|
| public NumberFormat getNumberFormat(Locale locale) Implements abstract org. Doc from org. Obtain a concrete NumberFormat for the specified locale.
| |
| setPattern | back to summary |
|---|---|
| public void setPattern(String pattern) Specify the pattern to use to format number values. If not specified, the default DecimalFormat pattern is used. | |