org.geotools.feature.collection
Class FilteredIterator<F extends org.opengis.feature.Feature>
java.lang.Object
org.geotools.feature.collection.FilteredIterator<F>
- All Implemented Interfaces:
- java.util.Iterator<F>
public class FilteredIterator<F extends org.opengis.feature.Feature>
- extends java.lang.Object
- implements java.util.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteredIterator
public FilteredIterator(java.util.Iterator<F> iterator,
org.opengis.filter.Filter filter)
FilteredIterator
public FilteredIterator(FeatureCollection<? extends org.opengis.feature.type.FeatureType,F> collection,
org.opengis.filter.Filter filter)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<F extends org.opengis.feature.Feature>
next
public F next()
- Specified by:
next
in interface java.util.Iterator<F extends org.opengis.feature.Feature>
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<F extends org.opengis.feature.Feature>
Copyright © 1996-2010 Geotools. All Rights Reserved.