org.geotools.data.store
Class FeatureIteratorIterator<F extends Feature>

Object
  extended by FeatureIteratorIterator<F>
All Implemented Interfaces:
Iterator<F>

public class FeatureIteratorIterator<F extends Feature>
extends Object
implements Iterator<F>

An Iterator which delegates to a FeatureIterator.

Since:
2.4
Author:
Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
Module:
modules/library/main (gt-main.jar)

Constructor Summary
FeatureIteratorIterator(FeatureIterator<F> delegate)
          Creates the new iterator.
 
Method Summary
 FeatureIterator<F> getDelegate()
           
 boolean hasNext()
          Calls through to FeatureIterator.hasNext()
 F next()
          Calls through to FeatureIterator.next()
 void remove()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureIteratorIterator

public FeatureIteratorIterator(FeatureIterator<F> delegate)
Creates the new iterator.

Parameters:
delegate - The iterator to delegate to.
Method Detail

hasNext

public boolean hasNext()
Calls through to FeatureIterator.hasNext()

Specified by:
hasNext in interface Iterator<F extends Feature>

next

public F next()
Calls through to FeatureIterator.next()

Specified by:
next in interface Iterator<F extends Feature>

remove

public void remove()
Specified by:
remove in interface Iterator<F extends Feature>
Throws:
UnsupportedOperationException

getDelegate

public FeatureIterator<F> getDelegate()
Returns:
The underlying delegate.


Copyright © 1996-2010 Geotools. All Rights Reserved.