com.bbn.openmap.geo
Interface GeoPath.PointIterator

All Superinterfaces:
java.util.Iterator
All Known Implementing Classes:
GeoPath.Impl.PointIt
Enclosing interface:
GeoPath

public static interface GeoPath.PointIterator
extends java.util.Iterator


Method Summary
 boolean hasNext()
          Asking if is there another point.
 java.lang.Object next()
          standard implementation of Iterator.next() returns the same value as nextPoint(), albeit needing casting to GPoint.
 GeoPoint nextPoint()
          Advance to the next point.
 
Methods inherited from interface java.util.Iterator
remove
 

Method Detail

hasNext

boolean hasNext()
Asking if is there another point. *

Specified by:
hasNext in interface java.util.Iterator

next

java.lang.Object next()
standard implementation of Iterator.next() returns the same value as nextPoint(), albeit needing casting to GPoint.

Specified by:
next in interface java.util.Iterator

nextPoint

GeoPoint nextPoint()
Advance to the next point. Some implementations will also implement GPoint, so that #next() returns the iterator instance itself, but this should not be depended on.

Returns:
the next GPoint


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details