public abstract class RollingBuffer<T extends RollingBuffer.Resettable> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RollingBuffer.Resettable |
Constructor and Description |
---|
RollingBuffer() |
Modifier and Type | Method and Description |
---|---|
void |
freeBefore(int pos) |
T |
get(int pos)
Get T instance for this absolute position;
this is allowed to be arbitrarily far "in the
future" but cannot be before the last freeBefore.
|
protected abstract T |
newInstance() |
void |
reset() |