com.eriksilkensen.sudoku
Class Cell

java.lang.Object
  extended by com.eriksilkensen.sudoku.Cell
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Hint

public class Cell
extends java.lang.Object
implements java.io.Serializable

Cell represents a Cell which probably lives on a Board. It has an integer value, along with a boolean type.

Since:
1.0
Version:
03/15/07
Author:
Erik Silkensen
See Also:
Serialized Form

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

PLAYER

public static final boolean PLAYER
See Also:
Constant Field Values

STARTER

public static final boolean STARTER
See Also:
Constant Field Values
Constructor Detail

Cell

public Cell(int value,
            boolean type)
Default 2-arg constructor to create a Cell with the given value and type.


Cell

public Cell(Cell other)
Copy-constructor

Method Detail

toString

public java.lang.String toString()
Returns a String representation of this Cell object

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Determines the equality of this Cell object and the other passed in Object

Overrides:
equals in class java.lang.Object

setValue

public void setValue(int value)
Sets this Cell's value


setType

public void setType(boolean type)
Sets this Cell's type


getValue

public int getValue()
Returns this Cell's value


getType

public boolean getType()
Returns this Cell's type