NumberMatcher that uses a standard Java DecimalFormat to
match numbers.
By default, this uses the default DecimalFormat with the platform default Locale.
You will probably want your DecimalFormat to have grouping turned off, otherwise
something like 1,2 (in UK locale) would be parsed as a number 12.
| Modifier and Type | Field and Description |
|---|---|
| private DecimalFormat | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DecimalFormat | |
| public int | getNumberEnd(InputContext input, int startIndex)
Implements uk. Implementations should analyse the given |
| public void |
| decimalFormat | back to summary |
|---|---|
| private DecimalFormat decimalFormat | |
| READAHEAD_INCREMENT | back to summary |
|---|---|
| private static final int READAHEAD_INCREMENT | |
| DecimalFormatNumberMatcher | back to summary |
|---|---|
| public DecimalFormatNumberMatcher() | |
| DecimalFormatNumberMatcher | back to summary |
|---|---|
| public DecimalFormatNumberMatcher(Locale locale) | |
| DecimalFormatNumberMatcher | back to summary |
|---|---|
| public DecimalFormatNumberMatcher(DecimalFormat decimalFormat) | |
| getDecimalFormat | back to summary |
|---|---|
| public DecimalFormat getDecimalFormat() | |
| getNumberEnd | back to summary |
|---|---|
| public int getNumberEnd(InputContext input, int startIndex) Implements uk. Doc from uk. Implementations should analyse the given | |
| setDecimalFormat | back to summary |
|---|---|
| public void setDecimalFormat(DecimalFormat decimalFormat) | |