rangesearch.api
Interface Point2DIterator
- All Superinterfaces:
- jdsl.core.api.ObjectIterator
- All Known Implementing Classes:
- Point2DIteratorAdapter
- public interface Point2DIterator
- extends jdsl.core.api.ObjectIterator
An interface to iterate over Point2Ds. This interface makes method
signatures more specific and eliminates the need to cast when extracting
Point2Ds from a container.
Methods inherited from interface jdsl.core.api.ObjectIterator |
hasNext, nextObject, object, reset |
point2D
public jdsl.geomobj.api.Point2D point2D()
throws java.util.NoSuchElementException
- Returns:
- The point returned by the most recent next().
- Throws:
java.util.NoSuchElementException
- when the iterator is in its
initial, before-the-first-point state.
java.lang.ClassCastException
- when the objects being iterated
over aren't Point2Ds.
nextPoint2D
public jdsl.geomobj.api.Point2D nextPoint2D()
throws java.util.NoSuchElementException
- Returns:
- The next point to consider.
- Throws:
java.util.NoSuchElementException
- if the iterator has moved past
the last edge to be seen.
java.lang.ClassCastException
- when the objects being iterated
over aren't Point2Ds.