jchrest.lib
Class Square

java.lang.Object
  extended by jchrest.lib.Square

public class Square
extends java.lang.Object

Square is a convenience class to hold a row and column.


Constructor Summary
Square(int row, int column)
          Constructor makes an instance from given row and column.
 
Method Summary
 int getColumn()
          Accessor method for the column.
 int getRow()
          Accessor method for the row.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Square

public Square(int row,
              int column)
Constructor makes an instance from given row and column.

Method Detail

getColumn

public int getColumn()
Accessor method for the column.


getRow

public int getRow()
Accessor method for the row.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object