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

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

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

Iterator used to iterate over related nodes.

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

Field Summary
static int BOTH
          both iteration mode
static int IN
          in iteration mode
static int OUT
          out iteration mode
 
Constructor Summary
OptDirectedNode.RelatedIterator(int mode)
          Constructs a new iterator.
 
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
 

Field Detail

IN

public static final int IN
in iteration mode

See Also:
Constant Field Values

OUT

public static final int OUT
out iteration mode

See Also:
Constant Field Values

BOTH

public static final int BOTH
both iteration mode

See Also:
Constant Field Values
Constructor Detail

OptDirectedNode.RelatedIterator

public OptDirectedNode.RelatedIterator(int mode)
Constructs a new iterator.

Parameters:
mode - Iteration mode.
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.