public final class LinkedQueue<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LinkedQueue.Entry<T> |
Modifier and Type | Field and Description |
---|---|
LinkedQueue.Entry<T> |
first |
LinkedQueue.Entry<T> |
last |
Constructor and Description |
---|
LinkedQueue(int planned_size) |
Modifier and Type | Method and Description |
---|---|
LinkedQueue.Entry<T> |
addFirst(T a) |
LinkedQueue.Entry<T> |
addLast(T a) |
LinkedQueue.Entry<T> |
makeFirst(LinkedQueue.Entry<T> item) |
T |
remove(LinkedQueue.Entry<T> item) |
void |
removeAllAfter(LinkedQueue.Entry<T> item) |
int |
size() |
void |
waitForEmpty() |
public LinkedQueue.Entry<T> first
public LinkedQueue.Entry<T> last
public int size()
public void waitForEmpty()
public LinkedQueue.Entry<T> addLast(T a)
a
- public LinkedQueue.Entry<T> addFirst(T a)
a
- public T remove(LinkedQueue.Entry<T> item)
item
- public void removeAllAfter(LinkedQueue.Entry<T> item)
item
- public LinkedQueue.Entry<T> makeFirst(LinkedQueue.Entry<T> item)
item
- Copyright © 2016 Egothor. All Rights Reserved.