getNumberFormat(java.util.Locale) template method.
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract NumberFormat | Returns: the NumberFormat instance (nevernull)the current locale locale)Obtain a concrete NumberFormat for the specified locale. |
| public Number | parse(String
the text string text, Locale the current user locale locale)Implements org. |
| public String | print(Number
the instance to print number, Locale the current user locale locale)Implements org. |
| public void |
| lenient | back to summary |
|---|---|
| private boolean lenient | |
| AbstractNumberFormatter | back to summary |
|---|---|
| public AbstractNumberFormatter() | |
| getNumberFormat | back to summary |
|---|---|
| protected abstract NumberFormat getNumberFormat(Locale locale) Obtain a concrete NumberFormat for the specified locale.
| |
| parse | back to summary |
|---|---|
| public Number parse(String text, Locale locale) throws ParseException Implements org. Doc from org. Parse a text String to produce a T.
| |
| back to summary | |
|---|---|
| public String print(Number number, Locale locale) Implements org. Doc from org. Print the object of type T for display. | |
| setLenient | back to summary |
|---|---|
| public void setLenient(boolean lenient) Specify whether parsing is to be lenient. Default is With lenient parsing, the parser may allow inputs that do not precisely match the format. With strict parsing, inputs must match the format exactly. | |