|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFilteredIterator<F>
public class FilteredIterator<F extends Feature>
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.
Constructor Summary | |
---|---|
FilteredIterator(Collection<F> collection,
Filter filter)
|
|
FilteredIterator(Iterator<F> iterator,
Filter filter)
|
Method Summary | |
---|---|
void |
close()
Package protected, please use SubFeatureCollection.close( iterator ) |
boolean |
hasNext()
Does another Feature exist in this Iteration. |
F |
next()
Get the next Feature in this iteration. |
void |
remove()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilteredIterator(Iterator<F> iterator, Filter filter)
public FilteredIterator(Collection<F> collection, Filter filter)
Method Detail |
---|
public void close()
close
in interface Closeable
close
in interface FeatureIterator<F extends Feature>
public boolean hasNext()
FeatureIterator
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.)
hasNext
in interface Iterator<F extends Feature>
hasNext
in interface FeatureIterator<F extends Feature>
public F next()
FeatureIterator
next
in interface Iterator<F extends Feature>
next
in interface FeatureIterator<F extends Feature>
public void remove()
remove
in interface Iterator<F extends Feature>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |