public static class Table.Cell
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
column |
(package private) char |
letter |
(package private) int |
row |
| Constructor and Description |
|---|
Cell() |
Cell(int row,
int column)
Create an empty cell at the given row an column
|
Cell(int row,
int column,
char letter)
Create a cell with letter at given row and column
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getLetter()
Letter in this cell
|
int |
hashCode() |
boolean |
isEmpty()
Check if cell is empty
|
void |
setLetter(char letter)
Change letter in this cell
|
java.lang.String |
toString() |
Cell()
Cell(int row,
int column,
char letter)
row - to setcolumn - to setletter - to setCell(int row,
int column)
row - of cellcolumn - of cellpublic boolean isEmpty()
true if empty; false otherwisepublic java.lang.String toString()
toString in class java.lang.Objectpublic void setLetter(char letter)
letter - to setpublic char getLetter()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object