uoc.ei.tads
Class RecorregutVectorImpl<E>

java.lang.Object
  extended by uoc.ei.tads.RecorregutVectorImpl<E>
All Implemented Interfaces:
java.io.Serializable, Recorregut<E>

public class RecorregutVectorImpl<E>
extends java.lang.Object
implements Recorregut<E>

Implementació de recorregut sobre un vector.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
RecorregutVectorImpl(Posicio<E>[] elements, int nombreElements, int primer)
           
 
Method Summary
 boolean hiHaSeguent()
          Comprova si hi ha un primer o següent element.
 Posicio<E> seguent()
          Accessor de lectura del primer o següent element de l'enumeració.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecorregutVectorImpl

public RecorregutVectorImpl(Posicio<E>[] elements,
                            int nombreElements,
                            int primer)
Method Detail

hiHaSeguent

public boolean hiHaSeguent()
Description copied from interface: Recorregut
Comprova si hi ha un primer o següent element.

Specified by:
hiHaSeguent in interface Recorregut<E>

seguent

public Posicio<E> seguent()
                   throws ExcepcioPosicioInvalida
Description copied from interface: Recorregut
Accessor de lectura del primer o següent element de l'enumeració.

Specified by:
seguent in interface Recorregut<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