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>
public class GridCellPos extends Object implements Comparable<GridCellPos>, Serializable
This class stores aGridCell
's position as row and column (0-based).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridCellPos(int row, int col)
Create a position
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(GridCellPos other)
boolean
equals(Object obj)
int
getCol()
int
getRow()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.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()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(Object)
-
compareTo
public int compareTo(GridCellPos other)
- Specified by:
compareTo
in interfaceComparable<GridCellPos>
-
-