public abstract class RollingBuffer<T extends RollingBuffer.Resettable> extends Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
RollingBuffer.Resettable |
Constructor | Description |
---|---|
RollingBuffer() |
Modifier and Type | Method | 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() |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.