|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectproj3.Coordinate
public class Coordinate
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
| 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 |
|---|
public Coordinate(int row,
int column)
row - the row (zero based)column - the column (zero based)| Method Detail |
|---|
public int getColumn()
public int getRow()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||