Class ConsecutiveCharDigitSet

java.lang.Object
ch.randelshofer.fastdoubleparser.chr.ConsecutiveCharDigitSet
All Implemented Interfaces:
CharDigitSet

final class ConsecutiveCharDigitSet extends Object implements CharDigitSet
  • Field Details

    • zeroDigit

      private final char zeroDigit
  • Constructor Details

    • ConsecutiveCharDigitSet

      public ConsecutiveCharDigitSet(char zeroDigit)
  • Method Details

    • toDigit

      public int toDigit(char ch)
      Description copied from interface: CharDigitSet
      Returns a value in the range 0 to 9 if the specified character is a digit. Otherwise, Returns a value greater than 9.
      Specified by:
      toDigit in interface CharDigitSet
      Parameters:
      ch - a character
      Returns:
      a value in the range 0 to Integer.MAX_VALUE.