rangesearch.ref
Class Point2DIteratorAdapter
java.lang.Object
rangesearch.ref.Point2DIteratorAdapter
- All Implemented Interfaces:
- jdsl.core.api.ObjectIterator, Point2DIterator
- public class Point2DIteratorAdapter
- extends java.lang.Object
- implements Point2DIterator
An adapter between ObjectIterators and Point2DIterators.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Point2DIteratorAdapter
public Point2DIteratorAdapter(jdsl.core.api.ObjectIterator oi)
- Parameters:
oi
- the iterator to adapt to a Point2DIterator.
point2D
public jdsl.geomobj.api.Point2D point2D()
throws java.util.NoSuchElementException
- Specified by:
point2D
in interface Point2DIterator
- 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.
nextPoint2D
public jdsl.geomobj.api.Point2D nextPoint2D()
throws java.util.NoSuchElementException
- Specified by:
nextPoint2D
in interface Point2DIterator
- Returns:
- The next point to consider.
- Throws:
java.util.NoSuchElementException
- if the iterator has moved past
the last edge to be seen.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface jdsl.core.api.ObjectIterator
nextObject
public java.lang.Object nextObject()
throws java.util.NoSuchElementException
- Specified by:
nextObject
in interface jdsl.core.api.ObjectIterator
- Throws:
java.util.NoSuchElementException
object
public java.lang.Object object()
throws java.util.NoSuchElementException
- Specified by:
object
in interface jdsl.core.api.ObjectIterator
- Throws:
java.util.NoSuchElementException
reset
public void reset()
- Specified by:
reset
in interface jdsl.core.api.ObjectIterator