public class PointIteratorAdapter extends PointIteratorAbstract
Iterator<PointFeature> to a PointFeatureIterator. The original iterator gains
bounds calculation and compatibility with the rest of the Point Feature API.PointFeatureIterator.FiltercalcBounds, info| Constructor and Description |
|---|
PointIteratorAdapter(java.util.Iterator<? extends PointFeature> pointIter)
Creates a
PointFeatureIterator from the supplied basic iterator. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finishes bounds calculation,
if it has been enabled. |
boolean |
hasNext()
Returns
true if the iteration has more elements. |
PointFeature |
next()
Returns the next element in the iteration.
|
calcBounds, finishCalcBounds, setCalculateBoundspublic PointIteratorAdapter(java.util.Iterator<? extends PointFeature> pointIter)
PointFeatureIterator from the supplied basic iterator.pointIter - a basic iterator over point features.public boolean hasNext()
true if the iteration has more elements. (In other words, returns true if next()
would return an element rather than throwing an exception.)
This method is idempotent, meaning that when it is called repeatedly without an intervening
next(), calls after the first will have no effect.true if the iteration has more elements, false otherwise. A false return value
finishes this iteration.public PointFeature next() throws java.util.NoSuchElementException
java.util.NoSuchElementException - if the iteration has no more elements.public void close()
if it has been enabled. Do not attempt to retrieve
bounds information before this method has been invoked or hasNext() returns false.
This method is idempotent, meaning that calls after the first have no effect.