Package geometries
Class GeometryList.GeometriesIterator
java.lang.Object
- All Implemented Interfaces:
java.util.Iterator<Geometry>
- Enclosing class:
- GeometryList
public class GeometryList.GeometriesIterator extends EfficientIterator<Geometry>
Iterates over the leaves of the geometries hierarchy as if they were a flat collection of
Geometry
s.-
Field Summary
Fields inherited from class util.EfficientIterator
hasNext, next
-
Method Summary
Modifier and Type Method Description protected void
setNext()
This method should set the values of the fieldsnext
andhasNext
.Methods inherited from class util.EfficientIterator
hasNext, next
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
setNext
protected void setNext()Description copied from class:EfficientIterator
This method should set the values of the fieldsnext
andhasNext
. Each subsequent call to this method should set next to the subsequent element of the iterable. If there are more elements, thennext
should be set to the next element that is to be returned byEfficientIterator.next()
. Otherwise,hasNext
should be set to false (the value ofnaxt
is irrelevant in this case). This method may be used by the derived constructors to set the values ofnext
initially in preperation for the first iteration.- Specified by:
setNext
in classEfficientIterator<Geometry>
-