Package geometries

Class GeometryList.GeometriesIterator

java.lang.Object
util.EfficientIterator<Geometry>
geometries.GeometryList.GeometriesIterator
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 void setNext()
    This method should set the values of the fields next and hasNext.

    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 fields next and hasNext. Each subsequent call to this method should set next to the subsequent element of the iterable. If there are more elements, then next should be set to the next element that is to be returned by EfficientIterator.next(). Otherwise, hasNext should be set to false (the value of naxt is irrelevant in this case). This method may be used by the derived constructors to set the values of next initially in preperation for the first iteration.
      Specified by:
      setNext in class EfficientIterator<Geometry>