Class ConsecutiveByteDigitSet
- java.lang.Object
-
- ch.randelshofer.fastdoubleparser.bte.ConsecutiveByteDigitSet
-
- All Implemented Interfaces:
ByteDigitSet
final class ConsecutiveByteDigitSet extends java.lang.Object implements ByteDigitSet
-
-
Field Summary
Fields Modifier and Type Field Description private bytezeroDigit
-
Constructor Summary
Constructors Constructor Description ConsecutiveByteDigitSet(char zeroDigit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description inttoDigit(byte ch)Returns a value in the range 0 to 9 if the specified character is a digit.
-
-
-
Method Detail
-
toDigit
public int toDigit(byte ch)
Description copied from interface:ByteDigitSetReturns a value in the range 0 to 9 if the specified character is a digit. Otherwise, Returns a value greater than 9.- Specified by:
toDigitin interfaceByteDigitSet- Parameters:
ch- a character- Returns:
- a value in the range 0 to Integer.MAX_VALUE.
-
-