|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuoc.ei.tads.ArbreGeneralDelegImpl.RecorregutFills<E>
protected static class ArbreGeneralDelegImpl.RecorregutFills<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 ArbreGeneralDelegImpl<E> |
arbre
Arbre que s'està recorrent. |
protected Posicio<E> |
fill
Posició auxiliar. |
Constructor Summary | |
---|---|
ArbreGeneralDelegImpl.RecorregutFills(ArbreGeneralDelegImpl<E> arbre,
Posicio<E> pare)
Constructor amb un paràmetre. |
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 ArbreGeneralDelegImpl<E> arbre
protected Posicio<E> fill
Constructor Detail |
---|
public ArbreGeneralDelegImpl.RecorregutFills(ArbreGeneralDelegImpl<E> arbre, Posicio<E> pare)
pare
- posicio de referència; s'espera que sigui una
posició vàlidaMethod 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 |