public class SampleDataAccessFeatureIterator extends Object implements FeatureIterator<Feature>
FeatureCollection
API. All iteration is performed using the iterator passed to the constructor.Constructor and Description |
---|
SampleDataAccessFeatureIterator(Iterator<Feature> iterator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Nothing to close.
|
boolean |
hasNext()
Does another Feature exist in this Iteration.
|
Feature |
next()
Get the next Feature in this iteration.
|
void |
remove() |
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 FeatureIterator<Feature>
Iterator.hasNext()
public Feature next()
FeatureIterator
next
in interface FeatureIterator<Feature>
Iterator.next()
public void remove()
Iterator.remove()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface FeatureIterator<Feature>
FeatureIterator.close()
Copyright © 1996–2019 Geotools. All rights reserved.