Interface ByteDigitSet
-
- All Known Implementing Classes:
ByteToIntMap,ConsecutiveByteDigitSet
public interface ByteDigitSetInterface for sets of digit bytes.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ByteDigitSetcopyOf(java.util.List<java.lang.Character> digits)Creates a newByteDigitSetinstead from the specified list.inttoDigit(byte ch)Returns a value in the range 0 to 9 if the specified character is a digit.
-
-
-
Method Detail
-
toDigit
int toDigit(byte ch)
Returns a value in the range 0 to 9 if the specified character is a digit. Otherwise, Returns a value greater than 9.- Parameters:
ch- a character- Returns:
- a value in the range 0 to Integer.MAX_VALUE.
-
copyOf
static ByteDigitSet copyOf(java.util.List<java.lang.Character> digits)
Creates a newByteDigitSetinstead from the specified list.The list must contain characters for the digits 0 to 9.
- Parameters:
digits- a list of digit characters- Returns:
- a new
ByteDigitSetinstance
-
-