|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Pair
A Pair maintains a pair of int's, row and col. These are publicly accessible.
| Field Summary | |
int |
col
|
int |
row
|
| Constructor Summary | |
(package private) |
Pair(int row,
int col)
Create a Pair from row and Column. |
| Method Summary | |
boolean |
adjacent(Pair other)
Indicate whether this Pair is adjacent on the Grid to the argument Pair. |
boolean |
equals(Pair other)
Equality test for Pairs. |
java.lang.String |
toString()
Provide a String representation of this Pair. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int row
public int col
| Constructor Detail |
Pair(int row,
int col)
| Method Detail |
public boolean adjacent(Pair other)
public boolean equals(Pair other)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||