|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SyncList
SyncList is a synchronized Queue, it wraps a linkedList and allows for synchronization.
Constructor Summary | |
SyncList()
|
Method Summary | |
void |
add(java.lang.Object o)
add's an object to the tail of the queue |
void |
addFirst(java.lang.Object o)
adds an Object to the head of the list |
boolean |
isEmpty()
is the queue is empty |
java.lang.Object |
removeFirst()
removes the first element from the list and returns it |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SyncList()
Method Detail |
public void add(java.lang.Object o)
o
- the object to add to the queuepublic boolean isEmpty()
public java.lang.Object removeFirst()
public void addFirst(java.lang.Object o)
o
- the object to add to the head of the list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |