public class FixedSizeBuffer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FixedSizeBuffer.FixedSizeBuffer<T> |
static class |
FixedSizeBuffer.ModuloFixedSizeBuffer<T> |
static class |
FixedSizeBuffer.PowerOfTwoFixedSizeBuffer<T> |
Constructor and Description |
---|
FixedSizeBuffer() |
Modifier and Type | Method and Description |
---|---|
static <T> <any> |
apply(int size)
INTERNAL API
|
public static <T> <any> apply(int size)
Returns a fixed size buffer backed by an array. The buffer implementation DOES NOT check against overflow or underflow, it is the responsibility of the user to track or check the capacity of the buffer before enqueueing dequeueing or dropping.
Returns a specialized instance for power-of-two sized buffers.
size
- (undocumented)