Package de.hsh.graja.util.comment.grid
Class GridCellPos
java.lang.Object
de.hsh.graja.util.comment.grid.GridCellPos
- All Implemented Interfaces:
Serializable
,Comparable<GridCellPos>
This class stores a
GridCell
's position as row and column (0-based).- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GridCellPos
public GridCellPos(int row, int col) Create a position- Parameters:
row
- row index (starting from 0)col
- column index (starting from 0)
-
-
Method Details
-
toString
-
getRow
public int getRow()- Returns:
- row index (starting from 0)
-
getCol
public int getCol()- Returns:
- column index (starting from 0)
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<GridCellPos>
-