|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.grids.core.AbstractGrid2DSquareCell.CellID
public static class AbstractGrid2DSquareCell.CellID
A simple CellID class for distinguishing cells.
Field Summary | |
---|---|
protected long |
_CellColIndex
For storing the column in which the cell is positioned |
protected long |
_CellRowIndex
For storing the row in which the cell is positioned |
Constructor Summary | |
---|---|
AbstractGrid2DSquareCell.CellID()
Default constructor. |
|
AbstractGrid2DSquareCell.CellID(AbstractGrid2DSquareCell.CellID _CellID)
Constructs a new CellID that is a clone of _CellID |
|
AbstractGrid2DSquareCell.CellID(long _NCols,
long _CellRowIndex,
long _CellColIndex)
Constructs a new CellID. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object object)
Method required by Comparable |
boolean |
equals(java.lang.Object object)
Overrides equals in Object |
long |
getCellColIndex()
|
long |
getCellRowIndex()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long _CellRowIndex
protected long _CellColIndex
Constructor Detail |
---|
public AbstractGrid2DSquareCell.CellID()
public AbstractGrid2DSquareCell.CellID(AbstractGrid2DSquareCell.CellID _CellID)
a_CellID
- The CellID to clone.public AbstractGrid2DSquareCell.CellID(long _NCols, long _CellRowIndex, long _CellColIndex)
cellRowIndex
- The row of the cell.cellColIndex
- The column of the cell._NCols
- The number of columns in a grid2DSquareCellAbstract.Method Detail |
---|
public long getCellRowIndex()
public long getCellColIndex()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |