Class Tree.BreathFirstIterator

java.lang.Object
  |
  +--Tree.BreathFirstIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
Tree

class Tree.BreathFirstIterator
extends java.lang.Object
implements java.util.Iterator

Itérateur en largeur d'un arbre. Cette classe définit un itérateur qui parcourt en largeur les noeuds d'un arbre.


Field Summary
(package private)  java.util.List lifo
           
 
Constructor Summary
(package private) Tree.BreathFirstIterator()
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lifo

java.util.List lifo
Constructor Detail

Tree.BreathFirstIterator

Tree.BreathFirstIterator()
Method Detail

hasNext

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

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

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