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
Geometrys.-
Field Summary
Fields inherited from class util.EfficientIterator
hasNext, next -
Method Summary
Modifier and Type Method Description protected voidsetNext()This method should set the values of the fieldsnextandhasNext.Methods inherited from class util.EfficientIterator
hasNext, nextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
setNext
protected void setNext()Description copied from class:EfficientIteratorThis method should set the values of the fieldsnextandhasNext. Each subsequent call to this method should set next to the subsequent element of the iterable. If there are more elements, thennextshould be set to the next element that is to be returned byEfficientIterator.next(). Otherwise,hasNextshould be set to false (the value ofnaxtis irrelevant in this case). This method may be used by the derived constructors to set the values ofnextinitially in preperation for the first iteration.- Specified by:
setNextin classEfficientIterator<Geometry>
-