uk.ac.leeds.ccg.andyt.grids.core
Class Grid2DSquareCellDoubleIterator

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.grids.utilities.AbstractIterator
      extended by uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleIterator
All Implemented Interfaces:
java.util.Iterator

public class Grid2DSquareCellDoubleIterator
extends AbstractIterator

For iterating through the values in a Grid2DSquareCellDouble instance. The values are not returned in any particular order. The chunk order depends on the order in which an iterator returns Grid2DSquareCellDouble._ChunkID_AbstractGrid2DSquareCellChunk_HashMap.values()


Constructor Summary
Grid2DSquareCellDoubleIterator()
          Creates a new instance of Grid2DSquareDoubleIterator
Grid2DSquareCellDoubleIterator(Grid2DSquareCellDouble a_Grid2DSquareCellDouble)
          Creates a new instance of Grid2DSquareDoubleIterator
 
Method Summary
static AbstractIterator getGrid2DSquareCellDoubleChunkIterator(AbstractGrid2DSquareCellDoubleChunk a_Grid2DSquareCellDoubleChunk)
           
 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

Grid2DSquareCellDoubleIterator

public Grid2DSquareCellDoubleIterator()
Creates a new instance of Grid2DSquareDoubleIterator


Grid2DSquareCellDoubleIterator

public Grid2DSquareCellDoubleIterator(Grid2DSquareCellDouble a_Grid2DSquareCellDouble)
Creates a new instance of Grid2DSquareDoubleIterator

Parameters:
a_Grid2DSquareCellDouble - The Grid2DSquareCellDouble to iterate over.
Method Detail

getGrid2DSquareCellDoubleChunkIterator

public static AbstractIterator getGrid2DSquareCellDoubleChunkIterator(AbstractGrid2DSquareCellDoubleChunk a_Grid2DSquareCellDoubleChunk)
Returns:
AbstractIterator to iterate over values in a_Grid2DSquareCellDoubleChunk

hasNext

public boolean hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in class AbstractIterator
Returns:
true if the iterator has more elements.

next

public java.lang.Object next()
Returns the next element in the iteration.

Specified by:
next in interface java.util.Iterator
Specified by:
next in class AbstractIterator
Returns:
the next element in the iteration.
Throws:
java.util.NoSuchElementException - iteration has no more elements.

remove

public void remove()
throw new UnsupportedOperationException();

Specified by:
remove in interface java.util.Iterator
Specified by:
remove in class AbstractIterator