T
- the element typepublic final class LinkedBuffer<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LinkedBuffer.N<T>
The node.
|
Modifier and Type | Field and Description |
---|---|
LinkedBuffer.N<T> |
head
The head pointer.
|
int |
size
The size.
|
LinkedBuffer.N<T> |
tail
The tail pointer.
|
Constructor and Description |
---|
LinkedBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
add(T value)
Add a new value.
|
public final LinkedBuffer.N<T> head
public LinkedBuffer.N<T> tail
public int size
public void add(T value)
value
- the new value