Class ConsecutiveCharDigitSet

  • All Implemented Interfaces:
    CharDigitSet

    final class ConsecutiveCharDigitSet
    extends java.lang.Object
    implements CharDigitSet
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private char zeroDigit  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int toDigit​(char ch)
      Returns a value in the range 0 to 9 if the specified character is a digit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • zeroDigit

        private final char zeroDigit
    • Constructor Detail

      • ConsecutiveCharDigitSet

        public ConsecutiveCharDigitSet​(char zeroDigit)
    • Method Detail

      • 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.