org.geotools.graph.structure.opt
Class OptNode.RelatedIterator

java.lang.Object
  extended byorg.geotools.graph.structure.opt.OptNode.RelatedIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
OptNode

public class OptNode.RelatedIterator
extends java.lang.Object
implements java.util.Iterator

An iterator used to iterate over related nodes.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net

Constructor Summary
OptNode.RelatedIterator(OptNode node)
           
 
Method Summary
 boolean hasNext()
          Determines if there are any more related nodes to return.
 java.lang.Object next()
          Returns the next related node.
 void remove()
          Not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptNode.RelatedIterator

public OptNode.RelatedIterator(OptNode node)
Method Detail

remove

public void remove()
Not supported.

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException

hasNext

public boolean hasNext()
Determines if there are any more related nodes to return.

Specified by:
hasNext in interface java.util.Iterator
See Also:
Iterator.hasNext()

next

public java.lang.Object next()
Returns the next related node.

Specified by:
next in interface java.util.Iterator
See Also:
Iterator.next()


Copyright © GeoTools. All Rights Reserved.