Class JsonDoubleBitsFromCharSequence

    • Constructor Detail

      • JsonDoubleBitsFromCharSequence

        public JsonDoubleBitsFromCharSequence()
        Creates a new instance.
    • Method Detail

      • valueOfFloatLiteral

        long valueOfFloatLiteral​(java.lang.CharSequence str,
                                 int startIndex,
                                 int endIndex,
                                 boolean isNegative,
                                 long significand,
                                 int exponent,
                                 boolean isSignificandTruncated,
                                 int exponentOfTruncatedSignificand)
        Description copied from class: AbstractJsonFloatingPointBitsFromCharSequence
        Computes a float value from the given components of a number literal.
        Specified by:
        valueOfFloatLiteral in class AbstractJsonFloatingPointBitsFromCharSequence
        Parameters:
        str - the string that contains the number literal (and maybe more)
        startIndex - the start index (inclusive) of the number literal inside the string
        endIndex - the end index (exclusive) of the number literal inside the string
        isNegative - whether the float value is negative
        significand - the significand of the float value (can be truncated)
        exponent - the exponent of the float value
        isSignificandTruncated - whether the significand is truncated
        exponentOfTruncatedSignificand - the exponent value of the truncated significand
        Returns:
        the bit pattern of the parsed value, if the input is legal; otherwise, -1L.