org.egothor.util
Class LinkedQueue<T>
java.lang.Object
org.egothor.util.LinkedQueue<T>
public final class LinkedQueue<T>
- extends java.lang.Object
Fully synchronized linked list (in both directions). After each removal, notify() of this object is invoked.
- Author:
- Leo Galambos
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
first
public LinkedQueue.Entry<T> first
last
public LinkedQueue.Entry<T> last
LinkedQueue
public LinkedQueue(int planned_size)
size
public int size()
waitForEmpty
public void waitForEmpty()
addLast
public LinkedQueue.Entry<T> addLast(T a)
addFirst
public LinkedQueue.Entry<T> addFirst(T a)
remove
public T remove(LinkedQueue.Entry<T> item)
removeAllAfter
public void removeAllAfter(LinkedQueue.Entry<T> item)
makeFirst
public LinkedQueue.Entry<T> makeFirst(LinkedQueue.Entry<T> item)