org.geotools.feature.collection
Class FilteredIterator<F extends Feature>
Object
FilteredIterator<F>
- All Implemented Interfaces:
- Iterator<F>
public class FilteredIterator<F extends Feature>
- extends Object
- implements Iterator<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.
- Author:
- Jody Garnett, Refractions Research, Inc.
- Module:
modules/library/main (gt-main.jar)
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteredIterator
public FilteredIterator(Iterator<F> iterator,
Filter filter)
FilteredIterator
public FilteredIterator(FeatureCollection<? extends FeatureType,F> collection,
Filter filter)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<F extends Feature>
next
public F next()
- Specified by:
next
in interface Iterator<F extends Feature>
remove
public void remove()
- Specified by:
remove
in interface Iterator<F extends Feature>
Copyright © 1996-2009 Geotools. All Rights Reserved.