com.planeth.gtroids.environment
Class QuadrantIterator

java.lang.Object
  extended bycom.planeth.gtroids.environment.QuadrantIterator
All Implemented Interfaces:
java.util.Iterator

public class QuadrantIterator
extends java.lang.Object
implements java.util.Iterator

The QuadrantIterator wraps all containing Objects of a 2-dimensional Arry of Quatrants into an Iterator.

Author:
Andreas Grässer, gal@planet-h.com.
created Jun 4, 2005
See Also:
Quadrant, FieldedArea

Constructor Summary
QuadrantIterator(Quadrant[][] quadrants)
          Constructor for QuadrantIterator.
 
Method Summary
 boolean hasNext()
          Returns true, if the Iterator has more elements.
 java.lang.Object next()
          Returns the next element.
 void remove()
          Removes the current element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadrantIterator

public QuadrantIterator(Quadrant[][] quadrants)
Constructor for QuadrantIterator.

Parameters:
quadrants - the Quadrants to be used for the Iterator
Method Detail

hasNext

public boolean hasNext()
Returns true, if the Iterator has more elements.

Specified by:
hasNext in interface java.util.Iterator
See Also:
Iterator.hasNext()

next

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

Specified by:
next in interface java.util.Iterator
See Also:
Iterator.next()

remove

public void remove()
Removes the current element.

Specified by:
remove in interface java.util.Iterator
See Also:
Iterator.remove()