|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ColaLimitadaArray
public class ColaLimitadaArray
Cola de tamano limitado, implementada con un array.
Constructor Summary | |
---|---|
ColaLimitadaArray(int max)
Constructor. |
Method Summary | |
---|---|
Iterator<Punto2D> |
iterator()
Para recorrer los puntos metidos en la cola. |
void |
mete(Punto2D punto)
Anade un punto al final de la cola. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColaLimitadaArray(int max)
max
- numero maximo de puntos en la cola.Method Detail |
---|
public Iterator<Punto2D> iterator()
iterator
in interface ColaLimitada
iterator
in interface Iterable<Punto2D>
public void mete(Punto2D punto)
mete
in interface ColaLimitada
punto
- nuevo punto.public int size()
size
in interface ColaLimitada
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |