org.jscience.ml.gml.dom
Class CoordinateTupleIteratorImpl

java.lang.Object
  extended by org.jscience.ml.gml.dom.CoordinateTupleIteratorImpl
All Implemented Interfaces:
java.util.Iterator, CoordinateTupleIterator

public class CoordinateTupleIteratorImpl
extends java.lang.Object
implements CoordinateTupleIterator

A sample implementation of the CoordinateTupleIterator i/f.


Constructor Summary
CoordinateTupleIteratorImpl(java.util.Iterator iterator)
          Constructs this iterator as a type-safe wrapper around another iterator.
 
Method Summary
 boolean hasNext()
          DOCUMENT ME!
 java.lang.Object next()
          DOCUMENT ME!
 CoordinateTuple nextCoordinateTuple()
          Convenience method that makes this iterator type-safe.
 void remove()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoordinateTupleIteratorImpl

public CoordinateTupleIteratorImpl(java.util.Iterator iterator)
Constructs this iterator as a type-safe wrapper around another iterator.

Parameters:
iterator - DOCUMENT ME!
Method Detail

nextCoordinateTuple

public CoordinateTuple nextCoordinateTuple()
Convenience method that makes this iterator type-safe.

Specified by:
nextCoordinateTuple in interface CoordinateTupleIterator
Returns:
DOCUMENT ME!

hasNext

public boolean hasNext()
DOCUMENT ME!

Specified by:
hasNext in interface java.util.Iterator
Returns:
DOCUMENT ME!

next

public java.lang.Object next()
DOCUMENT ME!

Specified by:
next in interface java.util.Iterator
Returns:
DOCUMENT ME!

remove

public void remove()
DOCUMENT ME!

Specified by:
remove in interface java.util.Iterator