Class: NumericInputStatus

NumericInputStatus(isValid, isAmbiguous, isParseError, parseResult)

Status describing whether a single numeric input value is valid.

Constructor

new NumericInputStatus(isValid, isAmbiguous, isParseError, parseResult)

Create a new NumericInputStatus.
Parameters:
Name Type Description
isValid boolean Whether the value is likely valid.
isAmbiguous boolean Whether the value has an ambiguous number format.
isParseError boolean Whether the value failed to parse.
parseResult NumberParseResult | null The parse result, or null if the value was not run through the number parser.
Source:

Methods

getParseResult() → {NumberParseResult|null}

Get the underlying number parse result.
Source:
Returns:
The parse result, or null if the value was not run through the number parser.
Type
NumberParseResult | null

isAmbiguous() → {boolean}

Check if the value has an ambiguous number format.
Source:
Returns:
True if the value is ambiguous.
Type
boolean

isParseError() → {boolean}

Check if the value failed to parse.
Source:
Returns:
True if the value failed to parse.
Type
boolean

isValid() → {boolean}

Check if the value is likely valid.
Source:
Returns:
True if the value is OK, false if it looks suspect.
Type
boolean