- All Implemented Interfaces:
Iterator<Node>
- Enclosing class:
- OptDirectedNode
Iterator used to iterate over related nodes.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
-
Field Summary
Fields
static final int
static final int
static final int
-
Constructor Summary
Constructors
Constructs a new iterator.
-
Method Summary
boolean
Determines if there are any more related nodes to return.
Returns the next related node.
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
IN
public static final int IN
in iteration mode *
- See Also:
-
-
OUT
public static final int OUT
out iteration mode *
- See Also:
-
-
BOTH
public static final int BOTH
both iteration mode *
- See Also:
-
-
Constructor Details
-
RelatedIterator
public RelatedIterator(int mode)
Constructs a new iterator.
- Parameters:
mode - Iteration mode.
-
Method Details
-
remove
public void remove()
Not supported.
- Specified by:
remove in interface Iterator<Node>
-
hasNext
public boolean hasNext()
Determines if there are any more related nodes to return.
- Specified by:
hasNext in interface Iterator<Node>
- See Also:
-
-
next
Returns the next related node.
- Specified by:
next in interface Iterator<Node>