net.sf.basedb.util
Class Tree.ElementIterator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entryIterator
private final Iterator<Tree.Entry<E>> entryIterator
- The entry iterator.
Tree.ElementIterator
private Tree.ElementIterator(Iterator<Tree.Entry<E>> entryIterator)
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