Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.hut.tcm.jacob.utility.Buffer | +--fi.hut.tcm.jacob.utility.Queue
Constructor Summary | |
Queue()
This is overloaded constructor of the Queue. |
|
Queue(int initialSize)
This is overloaded constructor of the Queue. |
Method Summary | |
boolean | empty()
Return true if storage is empty otherwise false. |
boolean | full()
Returns true if storage is full otherwise false. |
void | put(java.lang.Object item)
Adds item to storage and notifyes all waiting take method calls. |
java.lang.Object | take()
Removes one Item from Queue and returns reference to it. |
Methods inherited from class fi.hut.tcm.jacob.utility.Buffer | |
empty, enlarge, full, get, getHead, getLength, getTail, has, put, putHead, putTail, take, take, takeHead, takeTail, toString |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public Queue()
public Queue(int initialSize)
Method Detail |
public boolean full()
public boolean empty()
public void put(java.lang.Object item)
public java.lang.Object take()
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |