Top Description Constructors Methods
ch.randelshofer.fastdoubleparser

pack-priv final Class JavaFloatBitsFromCharArray

extends AbstractJavaFloatingPointBitsFromCharArray
Class Inheritance

Parses a float from a char array.

Constructor Summary

AccessConstructor and Description
public
JavaFloatBitsFromCharArray()

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
pack-priv long
pack-priv long
pack-priv long
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.AbstractJavaFloatingPointBitsFromCharArray.valueOfFloatLiteral.

Computes a float value from the given components of a decimal float literal.
pack-priv long
valueOfHexLiteral(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.AbstractJavaFloatingPointBitsFromCharArray.valueOfHexLiteral.

Computes a float value from the given components of a hexadecimal float literal.
Inherited from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray:
parseFloatingPointLiteral

Constructor Detail

JavaFloatBitsFromCharArrayback to summary
public JavaFloatBitsFromCharArray()

Creates a new instance.

Method Detail

nanback to summary
pack-priv long nan()

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.nan.

Returns:long

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.nan.

a NaN constant in the specialized type wrapped in a long

Annotations
@Override
negativeInfinityback to summary
pack-priv long negativeInfinity()

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.negativeInfinity.

Returns:long

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.negativeInfinity.

a negative infinity constant in the specialized type wrapped in a long

Annotations
@Override
positiveInfinityback to summary
pack-priv long positiveInfinity()

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.positiveInfinity.

Returns:long

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.positiveInfinity.

a positive infinity constant in the specialized type wrapped in a long

Annotations
@Override
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.AbstractJavaFloatingPointBitsFromCharArray.valueOfFloatLiteral.

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.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
valueOfHexLiteralback to summary
pack-priv long valueOfHexLiteral(char[] str, int startIndex, int endIndex, boolean isNegative, long significand, int exponent, boolean isSignificandTruncated, int exponentOfTruncatedSignificand)

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.valueOfHexLiteral.

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharArray.valueOfHexLiteral.

Computes a float value from the given components of a hexadecimal 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