public final class ArrayQueue<E>
extends java.util.AbstractQueue<E>
implements java.util.Queue<E>
| Modifier and Type | Field and Description |
|---|---|
private E[] |
elements |
private int |
head |
private int |
modCnt |
private int |
tail |
| Constructor and Description |
|---|
ArrayQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
offer(E e) |
E |
peek() |
E |
poll() |
int |
size() |
contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait