|
||||||||||
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.Grid2DSquareCellAbstract.ChunkID
public static class Grid2DSquareCellAbstract.ChunkID
A simple ChunkID class for distinguishing s in this chunk.
Field Summary | |
---|---|
protected int |
chunkColIndex
For storing the chunk column index |
protected int |
chunkRowIndex
For storing the chunk row index |
protected int |
hashCode
For storing a hashCode for this ChunkID. |
Constructor Summary | |
---|---|
Grid2DSquareCellAbstract.ChunkID()
Default constructor. |
|
Grid2DSquareCellAbstract.ChunkID(Grid2DSquareCellAbstract.ChunkID chunkID)
Constructs a new ChunkID that is a clone of chunkID |
|
Grid2DSquareCellAbstract.ChunkID(int nChunkCols,
int chunkRowIndex,
int chunkColIndex)
Constructs a new ChunkID |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object object)
Method required by Comparable |
boolean |
equals(java.lang.Object object)
Overrides equals in Object |
int |
getChunkColIndex()
Returns this.chunkColIndex |
int |
getChunkRowIndex()
Returns this.chunkRowIndex |
int |
hashCode()
Returns this.hashCode |
java.lang.String |
toString()
Returns a description of this |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int chunkRowIndex
protected int chunkColIndex
protected int hashCode
Constructor Detail |
---|
public Grid2DSquareCellAbstract.ChunkID()
public Grid2DSquareCellAbstract.ChunkID(Grid2DSquareCellAbstract.ChunkID chunkID)
chunkID
- The ChunkID to clone.public Grid2DSquareCellAbstract.ChunkID(int nChunkCols, int chunkRowIndex, int chunkColIndex)
chunkRowIndex
- the row of thechunkColIndex
- the column of thenChunkCols
- The number of chunk columns (of the grid2DSquareCellAbstract).Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public int getChunkRowIndex()
public int getChunkColIndex()
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 |