Class ConsecutiveByteDigitSet

java.lang.Object
ch.randelshofer.fastdoubleparser.bte.ConsecutiveByteDigitSet
All Implemented Interfaces:
ByteDigitSet

final class ConsecutiveByteDigitSet extends Object implements ByteDigitSet
  • Field Details

    • zeroDigit

      private final byte zeroDigit
  • Constructor Details

    • ConsecutiveByteDigitSet

      public ConsecutiveByteDigitSet(char zeroDigit)
  • Method Details

    • toDigit

      public int toDigit(byte ch)
      Description copied from interface: ByteDigitSet
      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 ByteDigitSet
      Parameters:
      ch - a character
      Returns:
      a value in the range 0 to Integer.MAX_VALUE.