Package proguard.util
Class CircularIntBuffer
java.lang.Object
proguard.util.CircularIntBuffer
A circular buffer over the primitive integer type.
-
Constructor Summary
ConstructorsConstructorDescriptionCircularIntBuffer(int maxSize) Create a new CircularIntBuffer that can grow to a given maxSize. -
Method Summary
-
Constructor Details
-
CircularIntBuffer
public CircularIntBuffer(int maxSize) Create a new CircularIntBuffer that can grow to a given maxSize.
-
-
Method Details
-
push
public void push(int value) Push a value into the buffer overriding the oldest element when exceeding max size. -
peek
public int peek(int offset) Get the element at an offset of the head. -
peek
public int peek()Get the head value. -
size
public int size()Get current size of the buffer.
-