|
||||||||||
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.utilities.AbstractIterator uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntIterator
public class Grid2DSquareCellIntIterator
For iterating through the values in a Grid2DSquareCellInt instance. The values are returned chunk by chunk, but the order within each chunk is determined by the chunks types. If some
Constructor Summary | |
---|---|
Grid2DSquareCellIntIterator()
Creates a new instance of Grid2DSquareIntIterator |
|
Grid2DSquareCellIntIterator(Grid2DSquareCellInt a_Grid2DSquareCellInt)
Creates a new instance of Grid2DSquareIntIterator |
Method Summary | |
---|---|
static AbstractIterator |
getGrid2DSquareCellIntChunkIterator(AbstractGrid2DSquareCellIntChunk a_Grid2DSquareCellIntChunk)
|
boolean |
hasNext()
Returns true if the iteration has more elements. |
java.lang.Object |
next()
Returns the next element in the iteration. |
void |
remove()
throw new UnsupportedOperationException(); |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grid2DSquareCellIntIterator()
public Grid2DSquareCellIntIterator(Grid2DSquareCellInt a_Grid2DSquareCellInt)
a_Grid2DSquareCellInt
- The Grid2DSquareCellInt to iterate over.Method Detail |
---|
public static AbstractIterator getGrid2DSquareCellIntChunkIterator(AbstractGrid2DSquareCellIntChunk a_Grid2DSquareCellIntChunk)
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class AbstractIterator
public java.lang.Object next()
next
in interface java.util.Iterator
next
in class AbstractIterator
java.util.NoSuchElementException
- iteration has no more elements.public void remove()
remove
in interface java.util.Iterator
remove
in class AbstractIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |