public abstract static class FixedSizeBuffer.FixedSizeBuffer<T> extends java.lang.Object implements Buffer<T>
Constructor and Description |
---|
FixedSizeBuffer(int capacity) |
Modifier and Type | Method and Description |
---|---|
int |
capacity() |
void |
clear() |
T |
dequeue() |
void |
dropHead() |
void |
dropTail() |
void |
enqueue(T elem) |
boolean |
isEmpty() |
boolean |
isFull() |
boolean |
nonEmpty() |
T |
peek() |
protected long |
readIdx() |
protected abstract int |
toOffset(long idx,
boolean maintenance) |
java.lang.String |
toString() |
int |
used() |
protected long |
writeIdx() |