public class Cell extends SetOfNine
Constructor and Description |
---|
Cell()
Constructor, leaving all references at null.
|
Modifier and Type | Method and Description |
---|---|
CellCol |
getCellCol()
Returns the column group of nine of this cell.
|
CellRow |
getCellRow()
Returns the row group of nine of this cell.
|
CellSqr |
getCellSqr()
Returns the 3x3 block group of nine of this cell.
|
int |
getColNo()
Returns the column number.
|
Set<Cell> |
getExCells()
Return the set of Cell objects where contents are mutually exclusive with
this cell; they are in the same row or same column or same block.
|
int |
getRowNo()
Returns the row number.
|
Integer |
getValue()
Retrieves the value.
|
void |
makeReferences(CellRow row,
CellCol col,
CellSqr sqr)
Set references to all cell groups containing this cell.
|
String |
posAsString() |
void |
setValue(Integer value)
Set the cell value.
|
String |
toString() |
String |
valueAsString() |
blockExcept, blockValue, getFree, getFreeCount, getFreeValue
public Cell()
public void makeReferences(CellRow row, CellCol col, CellSqr sqr)
row
- the cell group for the rowcol
- the cell group for the columnsqr
- the cell group for the square 3x3 areapublic Integer getValue()
public void setValue(Integer value)
value
- an Integer objectpublic Set<Cell> getExCells()
public CellRow getCellRow()
public int getRowNo()
public CellCol getCellCol()
public int getColNo()
public CellSqr getCellSqr()
public String valueAsString()
public String posAsString()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.