Top Description Constructors Methods
ch.randelshofer.fastdoubleparser

pack-priv final Class JsonDoubleBitsFromCharArray

extends AbstractJsonFloatingPointBitsFromCharArray
Class Inheritance

Parses a double from a char array.

Constructor Summary

AccessConstructor and Description
public
JsonDoubleBitsFromCharArray()

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
pack-priv long
valueOfFloatLiteral(char[]
the string that contains the float literal (and maybe more)
str
,
int
the start index (inclusive) of the float literal inside the string
startIndex
,
int
the end index (exclusive) of the float 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.AbstractJsonFloatingPointBitsFromCharArray.valueOfFloatLiteral.

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

Constructor Detail

JsonDoubleBitsFromCharArrayback to summary
public JsonDoubleBitsFromCharArray()

Creates a new instance.

Method Detail

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

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromCharArray.valueOfFloatLiteral.

Doc from ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromCharArray.valueOfFloatLiteral.

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

Parameters
str:char[]

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

startIndex:int

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

endIndex:int

the end index (exclusive) of the float 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