|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.UCL.utils.Queue
Instances of this class represents queues of Object.
Constructor Summary | |
Queue()
|
Method Summary | |
void |
addElement(java.lang.Object element)
Appends an element to the queue |
void |
flush()
Flushes the queue |
java.lang.Object |
getElement()
Gets the head of the queue. |
int |
size()
Returns the size of the queue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Queue()
Method Detail |
public void addElement(java.lang.Object element)
element
- The element to be addedpublic java.lang.Object getElement() throws java.lang.InterruptedException
java.lang.InterruptedException
public int size()
public void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |