Serializable, Iterable<E>, Collection<E>, List<E>, Queue<E>public class CircularQueue<E> extends AbstractList<E> implements Queue<E>, Serializable
modCount| Constructor | Description |
|---|---|
CircularQueue() |
Construct a new, empty queue.
|
CircularQueue(int initialCapacity) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int idx,
E o) |
|
boolean |
add(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() |
|
String |
toString() |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayaddAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, equals, hashCode, iterator, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayaddAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArraypublic CircularQueue()
public CircularQueue(int initialCapacity)
public int capacity()
public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractList<E>public E get(int idx)
public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>isEmpty in class AbstractCollection<E>public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public String toString()
toString in class AbstractCollection<E>public boolean add(E o)
public void add(int idx,
E o)
public E remove(int idx)
Copyright © 2004–2018 Apache MINA Project. All rights reserved.