Class CellCollection


  • public class CellCollection
    extends Object
    A collection of cells ~ can be a row, column, or box|region|block.
    • Constructor Detail

      • CellCollection

        public CellCollection()
        Initialise an empty collection to reference 9 cells in a row, column, or box.
      • CellCollection

        public CellCollection​(int boardSize)
        Initialise an empty collection to reference N*N cells in a row, column, or box.
    • Method Detail

      • getCells

        public List<Cell> getCells()
        Get a collection of the cells.
      • addCellToCollection

        public void addCellToCollection​(Cell cell)
      • getValues

        public int[] getValues()