com.vividsolutions.jts.geom
public class GeometryCollectionIterator extends java.lang.Object implements java.util.Iterator
Geometry
s in a GeometryCollection
.
Implements a pre-order depth-first traversal of the GeometryCollection
(which may be nested). The original GeometryCollection
is
returned as well (as the first object), as are all sub-collections. It is
simple to ignore the GeometryCollection
objects if they are not
needed.Constructor and Description |
---|
GeometryCollectionIterator(Geometry parent)
Constructs an iterator over the given
GeometryCollection . |
public GeometryCollectionIterator(Geometry parent)
GeometryCollection
.parent
- the collection over which to iterate; also, the first
element returned by the iterator.public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- This method is not implemented.