public abstract class ConcurrentCircularArray<E> extends ConcurrentCircularArrayL0Pad<E>
Modifier and Type | Field and Description |
---|---|
protected E[] |
buffer |
protected static int |
BUFFER_PAD |
protected long |
mask |
private static long |
REF_ARRAY_BASE |
private static int |
REF_ELEMENT_SHIFT |
protected static int |
SPARSE_SHIFT |
Constructor and Description |
---|
ConcurrentCircularArray(ConcurrentCircularArray<E> c) |
ConcurrentCircularArray(int capacity) |
Modifier and Type | Method and Description |
---|---|
protected long |
calcOffset(long index) |
protected long |
calcOffset(long index,
long mask) |
protected E |
lpElement(E[] buffer,
long offset) |
protected E |
lpElement(long offset) |
protected E |
lvElement(E[] buffer,
long offset) |
protected E |
lvElement(long offset) |
protected void |
soElement(E[] buffer,
long offset,
E e) |
protected void |
soElement(long offset,
E e) |
protected void |
spElement(E[] buffer,
long offset,
E e) |
protected void |
spElement(long offset,
E e) |
protected void |
svElement(E[] buffer,
long offset,
E e) |
protected void |
svElement(long offset,
E e) |
protected static final int SPARSE_SHIFT
protected static final int BUFFER_PAD
private static final long REF_ARRAY_BASE
private static final int REF_ELEMENT_SHIFT
protected final long mask
protected final E[] buffer
public ConcurrentCircularArray(int capacity)
public ConcurrentCircularArray(ConcurrentCircularArray<E> c)
protected final long calcOffset(long index)
protected final long calcOffset(long index, long mask)
protected final void spElement(long offset, E e)
protected final void soElement(long offset, E e)
protected final void svElement(long offset, E e)
protected final E lpElement(long offset)
protected final E lvElement(long offset)