public class CircularQueue<E>
extends java.util.AbstractList<E>
implements java.util.Queue<E>, java.io.Serializable
Constructor and Description |
---|
CircularQueue()
Construct a new, empty queue.
|
CircularQueue(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
void |
add(int idx,
E o) |
int |
capacity()
Returns the capacity of this queue.
|
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public CircularQueue()
public CircularQueue(int initialCapacity)
public int capacity()
public void clear()
public E get(int idx)
public boolean isEmpty()
public int size()
public java.lang.String toString()
toString
in class java.util.AbstractCollection<E>
public boolean add(E o)
public void add(int idx, E o)
public E remove(int idx)
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.