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

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

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

Iterator used to iterate over adjacent edges.

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

Field Summary
static int BOTH
          both mode
static int IN
          in mode
static int OUT
          out mode
 
Constructor Summary
OptDirectedEdge.RelatedIterator(int mode)
          Constructs a new iterator.
 
Method Summary
 boolean hasNext()
          Determines if there are any more related edges to return.
 java.lang.Object next()
          Returns the next related edge.
 void remove()
          Unsupported Operation.
 
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 mode

See Also:
Constant Field Values

OUT

public static final int OUT
out mode

See Also:
Constant Field Values

BOTH

public static final int BOTH
both mode

See Also:
Constant Field Values
Constructor Detail

OptDirectedEdge.RelatedIterator

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

Parameters:
mode - Iteration mode.
Method Detail

remove

public void remove()
Unsupported Operation.

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

hasNext

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

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

next

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

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


Copyright © GeoTools. All Rights Reserved.