Class ConfigurableDoubleBitsFromCharSequence


final class ConfigurableDoubleBitsFromCharSequence extends AbstractConfigurableFloatingPointBitsFromCharSequence
Parses a double from a CharSequence with configurable NumberFormatSymbols.
  • Constructor Details

    • ConfigurableDoubleBitsFromCharSequence

      public ConfigurableDoubleBitsFromCharSequence(NumberFormatSymbols symbols, boolean ignoreCase)
      Creates a new instance.
  • Method Details

    • nan

      long nan()
      Specified by:
      nan in class AbstractConfigurableFloatingPointBitsFromCharSequence
      Returns:
      a NaN constant in the specialized type wrapped in a long
    • negativeInfinity

      long negativeInfinity()
      Specified by:
      negativeInfinity in class AbstractConfigurableFloatingPointBitsFromCharSequence
      Returns:
      a negative infinity constant in the specialized type wrapped in a long
    • positiveInfinity

      long positiveInfinity()
      Specified by:
      positiveInfinity in class AbstractConfigurableFloatingPointBitsFromCharSequence
      Returns:
      a positive infinity constant in the specialized type wrapped in a long
    • valueOfFloatLiteral

      long valueOfFloatLiteral(CharSequence str, int integerStartIndex, int integerEndIndex, int fractionStartIndex, int fractionEndIndex, boolean isSignificandNegative, long significand, int exponent, boolean isSignificandTruncated, int exponentOfTruncatedSignificand, int exponentValue, int startIndex, int endIndex)
      Computes a float value from the given components of a decimal float literal.
      Specified by:
      valueOfFloatLiteral in class AbstractConfigurableFloatingPointBitsFromCharSequence
      Parameters:
      str - the string that contains the float literal (and maybe more)
      integerStartIndex - the start index (inclusive) of the integer part of the significand inside the string
      integerEndIndex - the end index (exclusive) of the integer part of the significand the string
      fractionStartIndex - the start index (inclusive) of the fraction part of the significand inside the string
      fractionEndIndex - the end index (exclusive) of the fraction part of the significand the string
      isSignificandNegative - whether the significand value is negative
      significand - the significand of the float value (can be truncated)
      exponent - the exponent of the float value considering the significand
      isSignificandTruncated - whether the significand is truncated
      exponentOfTruncatedSignificand - the exponent value of the truncated significand
      exponentValue - the exponent value without considering the significand
      startIndex - the start index of the literal in str
      endIndex - the end index of the literal in str
      Returns:
      the bit pattern of the parsed value, if the input is legal; otherwise, -1L.