Package io.github.skenvy
Class CellCollection
- java.lang.Object
-
- io.github.skenvy.CellCollection
-
public class CellCollection extends Object
A collection of cells ~ can be a row, column, or box|region|block.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CellCollection.SudokuCellCollectionException
Used for cell collection related exceptions.
-
Constructor Summary
Constructors Constructor Description CellCollection()
Initialise an empty collection to reference 9 cells in a row, column, or box.CellCollection(int boardSize)
Initialise an empty collection to reference N*N cells in a row, column, or box.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCellToCollection(Cell cell)
List<Cell>
getCells()
Get a collection of the cells.int[]
getValues()
-