|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLocation
Represents the holes on the 10 x 10 board
Field Summary | |
private int |
col
The column coordinate |
private int |
row
The row coordinate |
Constructor Summary | |
(package private) |
Location()
Default constructor |
(package private) |
Location(int r,
int c)
Creates an object with specified row and column coordinates |
Method Summary | |
int |
col()
|
boolean |
equal(Location l)
Tests if two objects refer to the same hole |
int |
row()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int row
private int col
Constructor Detail |
Location(int r, int c)
r
- rowc
- columnLocation()
Method Detail |
public int row()
public int col()
public boolean equal(Location l)
l
- Location to compare with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |