org.jscience.ml.gml.dom
Class FeatureIteratorImpl

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

public class FeatureIteratorImpl
extends java.lang.Object
implements FeatureIterator

A sample implementation of the FeatureIterator interface.


Constructor Summary
FeatureIteratorImpl(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!
 Feature nextFeature()
          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

FeatureIteratorImpl

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

Parameters:
iterator - DOCUMENT ME!
Method Detail

nextFeature

public Feature nextFeature()
Convenience method that makes this iterator type-safe.

Specified by:
nextFeature in interface FeatureIterator
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