public class CircularQueue<E>
extends java.util.AbstractList<E>
implements java.util.Queue<E>, java.io.Serializable
构造器和说明 |
---|
CircularQueue()
Construct a new, empty queue.
|
CircularQueue(int initialCapacity) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
add(E o) |
void |
add(int idx,
E o) |
int |
capacity() |
void |
clear() |
E |
element() |
E |
get(int idx) |
boolean |
isEmpty() |
boolean |
offer(E item) |
E |
peek() |
E |
poll() |
E |
remove() |
E |
remove(int idx) |
E |
set(int idx,
E o) |
int |
size() |
java.lang.String |
toString() |
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray
public CircularQueue()
public CircularQueue(int initialCapacity)
public int capacity()
public void clear()
public boolean isEmpty()
public int size()
public java.lang.String toString()
toString
在类中 java.util.AbstractCollection<E>
public boolean add(E o)
public void add(int idx, E o)
public E remove(int idx)