Top Description Constructors Methods
ch.randelshofer.fastdoubleparser

pack-priv final Class JsonDoubleBitsFromCharSequence

extends AbstractJsonFloatingPointBitsFromCharSequence
Class Inheritance

Parses a double from a CharSequence.

Constructor Summary

AccessConstructor and Description
public
JsonDoubleBitsFromCharSequence()

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
pack-priv long
valueOfFloatLiteral(CharSequence
the string that contains the number literal (and maybe more)
str
,
int
the start index (inclusive) of the number literal inside the string
startIndex
,
int
the end index (exclusive) of the number literal inside the string
endIndex
,
boolean
whether the float value is negative
isNegative
,
long
the significand of the float value (can be truncated)
significand
,
int
the exponent of the float value
exponent
,
boolean
whether the significand is truncated
isSignificandTruncated
,
int
the exponent value of the truncated significand
exponentOfTruncatedSignificand
)

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromCharSequence.valueOfFloatLiteral.

Computes a float value from the given components of a number literal.
Inherited from ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromCharSequence:
parseNumber

Constructor Detail

JsonDoubleBitsFromCharSequenceback to summary
public JsonDoubleBitsFromCharSequence()

Creates a new instance.

Method Detail

valueOfFloatLiteralback to summary
pack-priv long valueOfFloatLiteral(CharSequence str, int startIndex, int endIndex, boolean isNegative, long significand, int exponent, boolean isSignificandTruncated, int exponentOfTruncatedSignificand)

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromCharSequence.valueOfFloatLiteral.

Doc from ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromCharSequence.valueOfFloatLiteral.

Computes a float value from the given components of a number literal.

Parameters
str:CharSequence

the string that contains the number literal (and maybe more)

startIndex:int

the start index (inclusive) of the number literal inside the string

endIndex:int

the end index (exclusive) of the number literal inside the string

isNegative:boolean

whether the float value is negative

significand:long

the significand of the float value (can be truncated)

exponent:int

the exponent of the float value

isSignificandTruncated:boolean

whether the significand is truncated

exponentOfTruncatedSignificand:int

the exponent value of the truncated significand

Returns:long

the bit pattern of the parsed value, if the input is legal; otherwise, -1L.

Annotations
@Override