public class SingleConsumerArrayDoubleQueue extends SingleConsumerQueue<E> implements BasicSingleConsumerDoubleQueue
| Constructor and Description |
|---|
SingleConsumerArrayDoubleQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
void |
deq(int index) |
boolean |
enq(double item) |
boolean |
enq(java.lang.Double item) |
boolean |
enqRaw(long item) |
boolean |
hasNext() |
boolean |
isEmpty() |
DoubleQueueIterator |
iterator() |
E |
peek() |
E |
poll() |
double |
pollDouble() |
int |
size() |
java.util.List<E> |
snapshot() |
add, clear, element, offer, remove, removeAll, retainAll, toStringaddAll, contains, containsAll, remove, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasNextcapacity, isEmpty, poll, sizepublic SingleConsumerArrayDoubleQueue(int capacity)
public boolean enq(double item)
enq in interface BasicSingleConsumerDoubleQueuepublic boolean enq(java.lang.Double item)
enq in interface BasicQueue<java.lang.Double>enq in class SingleConsumerQueue<java.lang.Double>public double pollDouble()
pollDouble in interface BasicSingleConsumerDoubleQueuepublic DoubleQueueIterator iterator()
iterator in interface java.lang.Iterable<java.lang.Double>iterator in interface java.util.Collection<java.lang.Double>public boolean enqRaw(long item)
public int capacity()
capacity in interface BasicQueue<E>capacity in class SingleConsumerQueue<E>public void deq(int index)
public boolean hasNext()
hasNext in interface BasicSingleConsumerQueue<E>hasNext in class SingleConsumerQueue<E>public E poll()
poll in interface BasicQueue<E>poll in interface java.util.Queue<E>poll in class SingleConsumerQueue<E>public E peek()
peek in interface java.util.Queue<E>peek in class SingleConsumerQueue<E>public int size()
size in interface BasicQueue<E>size in interface java.util.Collection<E>size in class SingleConsumerQueue<E>public boolean isEmpty()
isEmpty in interface BasicQueue<E>isEmpty in interface java.util.Collection<E>isEmpty in class SingleConsumerQueue<E>public java.util.List<E> snapshot()
snapshot in class SingleConsumerQueue<E>