|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Queue
A first in first out queue of integers
PQ
Constructor Summary | |
Queue(int maxN)
Constructs a Queue with a maximum number of integers |
Method Summary | |
int |
get()
Gets the next int off the Queue. |
boolean |
isEmpty()
Figures out whether this Queue is empty |
void |
put(int v)
Puts a new int on the Queue |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Queue(int maxN)
Method Detail |
public boolean isEmpty()
public void put(int v)
int
on the Queuev
- int
put on the Queueget()
public int get()
int
off the Queue. Uses FIFO policy.put(int)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |