|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
maze.storage.PushPop
maze.storage.Queue
A PushPop that implements a FIFO Queue.
| Field Summary | |
protected java.util.Vector |
theQueue
The Vector used to keep elements in the Queue. |
| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
Queue()
Creates an empty Queue. |
|
Queue(int size)
Creates an empty Queue of the given size. |
|
Queue(int size,
int incr)
Creates an empty Queue with the giving sizing parameters. |
|
| Method Summary | |
boolean |
empty()
Returns true if the Queue is empty. |
java.lang.Object |
pop()
Pop an element from the top of the Queue. |
void |
push(java.lang.Object o)
Push a new element on the bottom of the Queue. |
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
| Field Detail |
protected java.util.Vector theQueue
| Constructor Detail |
public Queue()
public Queue(int size)
size - int initial size.
public Queue(int size,
int incr)
size - int initial size.incr - int increment used to extend
the structure when the Queue is full.| Method Detail |
public boolean empty()
empty in class PushPoppublic void push(java.lang.Object o)
push in class PushPopo - Object to push on the bottom of the Queue.public java.lang.Object pop()
pop in class PushPop
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||