Top Description Constructors Methods
ch.randelshofer.fastdoubleparser

pack-priv final Class JavaFloatBitsFromCharSequence

extends AbstractJavaFloatingPointBitsFromCharSequence
Class Inheritance

Parses a float from a CharSequence.

Constructor Summary

AccessConstructor and Description
public
JavaFloatBitsFromCharSequence()

Creates a new instance.

Method Summary

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

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

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

Constructor Detail

JavaFloatBitsFromCharSequenceback to summary
public JavaFloatBitsFromCharSequence()

Creates a new instance.

Method Detail

nanback to summary
pack-priv long nan()

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharSequence.nan.

Returns:long

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharSequence.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.AbstractJavaFloatingPointBitsFromCharSequence.negativeInfinity.

Returns:long

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharSequence.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.AbstractJavaFloatingPointBitsFromCharSequence.positiveInfinity.

Returns:long

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharSequence.positiveInfinity.

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

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

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharSequence.valueOfFloatLiteral.

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

Parameters
str:CharSequence

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(CharSequence str, int startIndex, int endIndex, boolean isNegative, long significand, int exponent, boolean isSignificandTruncated, int exponentOfTruncatedSignificand)

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharSequence.valueOfHexLiteral.

Doc from ch.randelshofer.fastdoubleparser.AbstractJavaFloatingPointBitsFromCharSequence.valueOfHexLiteral.

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

Parameters
str:CharSequence

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