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

Object
  extended by OptDirectedNode.RelatedIterator
All Implemented Interfaces:
Iterator
Enclosing class:
OptDirectedNode

public class OptDirectedNode.RelatedIterator
extends Object
implements 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.
 Object next()
          Returns the next related node.
 void remove()
          Not supported.
 
Methods inherited from class 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 Iterator
Throws:
UnsupportedOperationException

hasNext

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

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

next

public Object next()
Returns the next related node.

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


Copyright © 1996-2014 Geotools. All Rights Reserved.