org.databene.commons.tree
Class TreeIterator<E>

java.lang.Object
  extended by org.databene.commons.tree.TreeIterator<E>
All Implemented Interfaces:
java.util.Iterator<E>, BidirectionalIterator<E>

public class TreeIterator<E>
extends java.lang.Object
implements BidirectionalIterator<E>

Iterates a tree forward and backward.

Created: 08.05.2007 18:05:24

Author:
Volker Bergmann

Constructor Summary
TreeIterator(TreeModel<E> treeModel)
           
 
Method Summary
 E first()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 E last()
           
 E next()
           
 E previous()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeIterator

public TreeIterator(TreeModel<E> treeModel)
Method Detail

first

public E first()
Specified by:
first in interface BidirectionalIterator<E>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface BidirectionalIterator<E>

previous

public E previous()
Specified by:
previous in interface BidirectionalIterator<E>

last

public E last()
Specified by:
last in interface BidirectionalIterator<E>

hasNext

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

next

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

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<E>


Copyright © 2010. All Rights Reserved.