SimpleQuantityFormat and RationalNumberFormat.
In addition to decimal formats this also parses rational number format 5÷3 or -5÷3.
| Modifier and Type | Field and Description |
|---|---|
| private final CharSequence | |
| private final ParsePosition | |
| private boolean | |
| private final NumberFormat |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Number | |
| private int | |
| private int |
| csq | back to summary |
|---|---|
| private final CharSequence csq | |
| cursor | back to summary |
|---|---|
| private final ParsePosition cursor | |
| divisionCharacterDetected | back to summary |
|---|---|
| private boolean divisionCharacterDetected | |
| numberFormat | back to summary |
|---|---|
| private final NumberFormat numberFormat | |
| RationalNumberScanner | back to summary |
|---|---|
| public RationalNumberScanner(CharSequence csq, ParsePosition cursor, NumberFormat numberFormat) | |
| getNumber | back to summary |
|---|---|
| public Number getNumber() | |
| scanForEnd | back to summary |
|---|---|
| private int scanForEnd(int pos) | |
| scanForStart | back to summary |
|---|---|
| private int scanForStart(int pos) | |