uoc.ei.tads
Class IteradorMultiple<E>
java.lang.Object
uoc.ei.tads.IteradorMultiple<E>
- All Implemented Interfaces:
- java.io.Serializable, Iterador<E>
public class IteradorMultiple<E>
- extends java.lang.Object
- implements Iterador<E>
Implementació d'iterador que permet iterar fent servir com a base
els elements d'un d'una seqüència d'iteradors.
- Since:
- 1.5
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteradorMultiple
public IteradorMultiple()
afegirIterador
public void afegirIterador(Iterador<E> iterador)
inicialitzar
protected void inicialitzar()
seguentIterador
protected void seguentIterador()
hiHaSeguent
public boolean hiHaSeguent()
- Description copied from interface:
Iterador
- Comprova si hi ha un primer o següent element.
- Specified by:
hiHaSeguent
in interface Iterador<E>
seguent
public E seguent()
throws ExcepcioPosicioInvalida
- Description copied from interface:
Iterador
- Accessor de lectura del primer o següent element de l'enumeració.
- Specified by:
seguent
in interface Iterador<E>
- Returns:
- primer o següent element a l'actual
- Throws:
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