proj3
Class Coordinate

java.lang.Object
  extended by proj3.Coordinate

public class Coordinate
extends java.lang.Object

Encapsulates the row and column of one cell in a 2-D coordinate system. Class Invariants: The row and column are nonnegative, coordinate objects are immutable

Author:
Daniel J. Hood (Created: 23 Mar 2011)

Constructor Summary
Coordinate(int row, int column)
          Constructs a new Coordinate from the specified row and column
 
Method Summary
 int getColumn()
          Accessor for the column.
 int getRow()
          Accessor for the row.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Coordinate

public Coordinate(int row,
                  int column)
Constructs a new Coordinate from the specified row and column

Parameters:
row - the row (zero based)
column - the column (zero based)
Method Detail

getColumn

public int getColumn()
Accessor for the column.

Returns:
the column

getRow

public int getRow()
Accessor for the row.

Returns:
the row