Files
G4G0-1/Semester 1/Programming 1/Java/examples/projects/chapter12/foxes-and-rabbits-v2/Location.ctxt
2024-01-15 20:14:10 +00:00

21 lines
990 B
Plaintext
Executable File

#BlueJ class context
comment0.params=row\ col
comment0.target=Location(int,\ int)
comment0.text=\n\ Represent\ a\ row\ and\ column.\n\ @param\ row\ The\ row.\n\ @param\ col\ The\ column.\n
comment1.params=obj
comment1.target=boolean\ equals(java.lang.Object)
comment1.text=\n\ Implement\ content\ equality.\n
comment2.params=
comment2.target=java.lang.String\ toString()
comment2.text=\n\ Return\ a\ string\ of\ the\ form\ row,column\n\ @return\ A\ string\ representation\ of\ the\ location.\n
comment3.params=
comment3.target=int\ hashCode()
comment3.text=\n\ Use\ the\ top\ 16\ bits\ for\ the\ row\ value\ and\ the\ bottom\ for\n\ the\ column.\ Except\ for\ very\ big\ grids,\ this\ should\ give\ a\n\ unique\ hash\ code\ for\ each\ (row,\ col)\ pair.\n\ @return\ A\ hashcode\ for\ the\ location.\n
comment4.params=
comment4.target=int\ getRow()
comment4.text=\n\ @return\ The\ row.\n
comment5.params=
comment5.target=int\ getCol()
comment5.text=\n\ @return\ The\ column.\n
numComments=6