|
||||||||||
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.Grid2DSquareCellChunkAbstract.ChunkCellID
public class Grid2DSquareCellChunkAbstract.ChunkCellID
A simple ChunkCellID class for distinguishing cells in this chunk.
Field Summary | |
---|---|
protected int |
chunkCellColIndex
For storing the column in which the cell is positioned |
protected int |
chunkCellRowIndex
For storing the row in which the cell is positioned |
protected int |
hashCode
For storing a hashCode for the cell. |
Constructor Summary | |
---|---|
protected |
Grid2DSquareCellChunkAbstract.ChunkCellID()
Constructs a new ChunkCellID |
protected |
Grid2DSquareCellChunkAbstract.ChunkCellID(int chunkCellRowIndex,
int chunkCellColIndex)
Constructs a new ChunkCellID |
protected |
Grid2DSquareCellChunkAbstract.ChunkCellID(int chunkNcols,
int chunkCellRowIndex,
int chunkCellColIndex)
Constructs a new ChunkCellID |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object object)
Method required by Comparable |
boolean |
equals(java.lang.Object object)
Overrides equals in Object |
long |
getChunkCellColIndex()
Returns chunkCellColIndex of this CellID |
long |
getChunkCellRowIndex()
Returns chunkCellRowIndex of this CellID |
int |
hashCode()
Returns hashCode of this CellID |
java.lang.String |
toString()
Returns a description of this CellID |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int chunkCellRowIndex
protected int chunkCellColIndex
protected int hashCode
Constructor Detail |
---|
protected Grid2DSquareCellChunkAbstract.ChunkCellID()
protected Grid2DSquareCellChunkAbstract.ChunkCellID(int chunkCellRowIndex, int chunkCellColIndex)
chunkCellRowIndex
- the row of the cellchunkCellColIndex
- the column of the cellprotected Grid2DSquareCellChunkAbstract.ChunkCellID(int chunkNcols, int chunkCellRowIndex, int chunkCellColIndex)
chunkCellRowIndex
- the row of the cellchunkCellColIndex
- the column of the cellchunkNcols
- the number of columns in the chunkMethod Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public long getChunkCellRowIndex()
public long getChunkCellColIndex()
public java.lang.String toString()
toString
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 |