Uses of Class
Digit
-
-
Uses of Digit in <Unnamed>
Methods in <Unnamed> that return Digit Modifier and Type Method Description static Digit
Digit. get(int i)
Returns the digit having the specified value.Digit
SudokuRow2. get(int index)
Gets the digit at the specified index of this row.Digit
Digit. set(int value)
Sets this digit to the specified value.Methods in <Unnamed> that return types with arguments of type Digit Modifier and Type Method Description static List<Digit>
Digit. allDigits()
Returns a new list containing all 10 digits (from 0 to 9).(package private) List<Digit>
SudokuRow2. getRow()
Returns the list for this row.List<Digit>
SudokuRow2. unsafeGetRow()
Returns a shallow copy of the digits of this row.Methods in <Unnamed> with parameters of type Digit Modifier and Type Method Description int
Digit. compareTo(Digit other)
Compares this digit to another digit for order.void
SudokuRow2. replace(Digit old, Digit d)
Replaces the first occurrence of a digit equal toold
in this row with a digit equal tod
.Method parameters in <Unnamed> with type arguments of type Digit Modifier and Type Method Description (package private) static boolean
SudokuRow2. isValid(List<Digit> digits, List<Digit> digitsSeenSoFar)
Returns true ifdigits
might be the digits of a valid sudoku row.Constructors in <Unnamed> with parameters of type Digit Constructor Description Digit(Digit other)
Initialize this digit by copying another digit.Constructor parameters in <Unnamed> with type arguments of type Digit Constructor Description SudokuRow2(List<Digit> row)
Initializes this sudoku row so that the digits of this row are equal to the digits in the specified list.
-