- All Implemented Interfaces:
public class FilteredIterator<F extends Feature> extends Object implements Iterator<F>, FeatureIterator<F>Provides an implementation of Iterator that will filter contents using the provided filter.
This is a *Generic* iterator not limited to Feature, this will become more interesting as Filter is able to evaulate itself with more things then just Features.
This also explains the use of Collection (where you may have expected a FeatureCollection). However
FeatureCollectoin.close( iterator )will be called on the internal delgate.
- Jody Garnett, Refractions Research, Inc.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
close()Package protected, please use SubFeatureCollection.close( iterator )
hasNext()Does another Feature exist in this Iteration.
next()Get the next Feature in this iteration.
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void close()Package protected, please use SubFeatureCollection.close( iterator )
public boolean hasNext()Description copied from interface:
FeatureIteratorDoes another Feature exist in this Iteration.
Iterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
public F next()Description copied from interface:
FeatureIteratorGet the next Feature in this iteration.