com.e4graph
Class ParentIterator

java.lang.Object
  |
  +--com.e4graph.ParentIterator
All Implemented Interfaces:
java.util.Iterator

public final class ParentIterator
extends java.lang.Object
implements java.util.Iterator


Constructor Summary
ParentIterator(com.e4graph.Node n)
          Constructor that creates an iterator that visits every parent of the given node.
 
Method Summary
 boolean hasNext()
          Does this iterator have a next element?
 java.lang.Object next()
          Get the next parent.
 void remove()
          Remove method -- always throws UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentIterator

public ParentIterator(com.e4graph.Node n)
Constructor that creates an iterator that visits every parent of the given node.

Method Detail

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Remove method -- always throws UnsupportedOperationException.

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

hasNext

public boolean hasNext()
Does this iterator have a next element?

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Get the next parent.

Specified by:
next in interface java.util.Iterator
java.util.NoSuchElementException