Top Description Fields Constructors Methods
tech.units.indriya.internal.format

public Class RationalNumberScanner

extends Object
Class Inheritance
Annotations
@API
status:INTERNAL
Static Imports
org.apiguardian.api.API.Status.INTERNAL

Support class for SimpleQuantityFormat and RationalNumberFormat.

In addition to decimal formats this also parses rational number format 5÷3 or -5÷3.

Author
Andi Huber

Field Summary

Modifier and TypeField and Description
private final CharSequence
private final ParsePosition
private boolean
private final NumberFormat

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Number
private int
scanForEnd(int pos)

private int
scanForStart(int pos)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

csqback to summary
private final CharSequence csq
cursorback to summary
private final ParsePosition cursor
divisionCharacterDetectedback to summary
private boolean divisionCharacterDetected
numberFormatback to summary
private final NumberFormat numberFormat

Constructor Detail

RationalNumberScannerback to summary
public RationalNumberScanner(CharSequence csq, ParsePosition cursor, NumberFormat numberFormat)

Method Detail

getNumberback to summary
public Number getNumber()
scanForEndback to summary
private int scanForEnd(int pos)
scanForStartback to summary
private int scanForStart(int pos)