2.17.2: 2011-06-17

net.sf.basedb.util
Class Tree.ElementIterator

java.lang.Object
  extended by net.sf.basedb.util.Tree.ElementIterator
All Implemented Interfaces:
Iterator<E>
Enclosing class:
Tree<E>

private class Tree.ElementIterator
extends Object
implements Iterator<E>

An iterator that return elements for each node. It uses the Tree.EntryIterator to get the nodes.


Field Summary
private  Iterator<Tree.Entry<E>> entryIterator
          The entry iterator.
 
Constructor Summary
private Tree.ElementIterator(Iterator<Tree.Entry<E>> entryIterator)
           
 
Method Summary
 boolean hasNext()
           
 E next()
           
 void remove()
          Not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryIterator

private final Iterator<Tree.Entry<E>> entryIterator
The entry iterator.

Constructor Detail

Tree.ElementIterator

private Tree.ElementIterator(Iterator<Tree.Entry<E>> entryIterator)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<E>

next

public E next()
Specified by:
next in interface Iterator<E>

remove

public void remove()
Not supported.

Specified by:
remove in interface Iterator<E>
Throws:
UnsupportedOperationException - Always

2.17.2: 2011-06-17