com.eriksilkensen.sudoku
Class Hint

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

public class Hint
extends Cell

Hint is a specialized version of a Cell that represents a Cell that knows its location along with its value.

Since:
1.0.1
Version:
02/13/07
Author:
Erik Silkensen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.eriksilkensen.sudoku.Cell
PLAYER, STARTER
 
Constructor Summary
Hint(int row, int col, int value)
          The only constructor provided requires the initializing of a specific location [row][col] along with a value.
 
Method Summary
 boolean equals(java.lang.Object o)
          Determines the equality of this Hint object and the passed in Object o in the argument list Two equal Hints must have the same row, col, and value values.
 int getCol()
          Returns the col
 int getRow()
          Returns the row
 
Methods inherited from class com.eriksilkensen.sudoku.Cell
getType, getValue, setType, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Hint

public Hint(int row,
            int col,
            int value)
The only constructor provided requires the initializing of a specific location [row][col] along with a value. The type is set to Cell.PLAYER, but the actual value of a Hint's type isn't that important

Method Detail

getRow

public int getRow()
Returns the row


getCol

public int getCol()
Returns the col


equals

public boolean equals(java.lang.Object o)
Determines the equality of this Hint object and the passed in Object o in the argument list Two equal Hints must have the same row, col, and value values.

Overrides:
equals in class Cell