|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ninja.activeproxy.path.pxset.Queue
Field Summary | |
private int |
head
|
private java.util.Vector |
queue
|
private int |
tail
|
Constructor Summary | |
Queue()
Constructor: Creates an empty queue |
Method Summary | |
int |
dequeue()
Dequeue an item |
void |
enqueue(int temp)
Enqueue an item |
int |
head()
Return item at head of queue |
boolean |
isEmpty()
Check if queue is empty |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector queue
private int head
private int tail
Constructor Detail |
public Queue()
Method Detail |
public void enqueue(int temp)
temp
- value to be enqueuedpublic int dequeue() throws EmptyQueueException
public boolean isEmpty()
public int head() throws EmptyQueueException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |