|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eriksilkensen.sudoku.Cell
public class Cell
Cell represents a Cell which probably lives on a Board. It has an integer value, along with a boolean type.
| Field Summary | |
|---|---|
static boolean |
PLAYER
|
static boolean |
STARTER
|
| Constructor Summary | |
|---|---|
Cell(Cell other)
Copy-constructor |
|
Cell(int value,
boolean type)
Default 2-arg constructor to create a Cell with the given value and type. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Determines the equality of this Cell object and the other passed in Object |
boolean |
getType()
Returns this Cell's type |
int |
getValue()
Returns this Cell's value |
void |
setType(boolean type)
Sets this Cell's type |
void |
setValue(int value)
Sets this Cell's value |
java.lang.String |
toString()
Returns a String representation of this Cell object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final boolean PLAYER
public static final boolean STARTER
| Constructor Detail |
|---|
public Cell(int value,
boolean type)
public Cell(Cell other)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic void setValue(int value)
public void setType(boolean type)
public int getValue()
public boolean getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||