|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuoc.ei.tads.ArbreBinari.RecorregutPerNivell<E>
protected static class ArbreBinari.RecorregutPerNivell<E>
Classe que proporciona un recorregut de les posicions. Basada en el pattern Iterator, soporta múltiples recorreguts simultanis i independents del contenidor. És sensible a eventuals alteracions de l'estructura de posicions.
Recorregut.hiHaSeguent()
,
Recorregut.seguent()
,
Serialized FormField Summary | |
---|---|
protected Cua<Posicio<E>> |
cua
Cua auxiliar. |
Constructor Summary | |
---|---|
ArbreBinari.RecorregutPerNivell(ArbreBinari<E> arbre)
Constructor sense paràmetres. |
Method Summary | |
---|---|
boolean |
hiHaSeguent()
Comprova si hi ha una primera o següent posició. |
Posicio<E> |
seguent()
Primer avança, si es pot, i després retorna la posició. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Cua<Posicio<E>> cua
Constructor Detail |
---|
public ArbreBinari.RecorregutPerNivell(ArbreBinari<E> arbre)
Method Detail |
---|
public boolean hiHaSeguent()
hiHaSeguent
in interface Recorregut<E>
public Posicio<E> seguent() throws ExcepcioPosicioInvalida
seguent
in interface Recorregut<E>
ExcepcioPosicioInvalida
- si es vol obtenir el següent
element de l'enumeració i no n'hi ha cap o no n'hi ha cap
més
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |