private static class AtomicReferenceArrayQueue.WeakIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicReferenceArray<E> |
buffer |
private int |
mask |
private E |
nextElement |
private long |
nextIndex |
private long |
pIndex |
Constructor and Description |
---|
WeakIterator(long cIndex,
long pIndex,
int mask,
java.util.concurrent.atomic.AtomicReferenceArray<E> buffer) |
Modifier and Type | Method and Description |
---|---|
private E |
getNext() |
boolean |
hasNext() |
E |
next() |
void |
remove() |
private final long pIndex
private final int mask
private final java.util.concurrent.atomic.AtomicReferenceArray<E> buffer
private long nextIndex
private E nextElement
WeakIterator(long cIndex, long pIndex, int mask, java.util.concurrent.atomic.AtomicReferenceArray<E> buffer)