|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.apache.mina.util.Queue
A unbounded circular queue.
| Field Summary |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
Queue()
Construct a new, empty queue. |
|
| Method Summary | |
void |
add(int idx,
java.lang.Object o)
|
boolean |
add(java.lang.Object o)
|
int |
capacity()
Returns the capacity of this queue. |
void |
clear()
Clears this queue. |
java.lang.Object |
element()
|
java.lang.Object |
first()
Returns the first element of the queue. |
java.lang.Object |
get(int idx)
|
boolean |
isEmpty()
Returns true if the queue is empty. |
java.lang.Object |
last()
Returns the last element of the queue. |
boolean |
offer(java.lang.Object o)
|
java.lang.Object |
peek()
|
java.lang.Object |
poll()
|
java.lang.Object |
pop()
Dequeues from this queue. |
void |
push(java.lang.Object obj)
Enqueue into this queue. |
java.lang.Object |
remove()
|
java.lang.Object |
remove(int idx)
|
java.lang.Object |
set(int idx,
java.lang.Object o)
|
int |
size()
Returns the number of elements in the queue. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.AbstractList |
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
addAll, addAll, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray |
| Constructor Detail |
public Queue()
| Method Detail |
public int capacity()
public void clear()
clear in interface java.util.Listpublic java.lang.Object pop()
null, if this queue is empty or the element is
really null.public void push(java.lang.Object obj)
public java.lang.Object first()
null, if the queue is empty, or the element is
really null.public java.lang.Object last()
null, if the queue is empty, or the element is
really null.public java.lang.Object get(int idx)
get in interface java.util.Listpublic boolean isEmpty()
true if the queue is empty.
isEmpty in interface java.util.Listpublic int size()
size in interface java.util.Listpublic java.lang.String toString()
public boolean add(java.lang.Object o)
add in interface java.util.List
public java.lang.Object set(int idx,
java.lang.Object o)
set in interface java.util.List
public void add(int idx,
java.lang.Object o)
add in interface java.util.Listpublic java.lang.Object remove(int idx)
remove in interface java.util.Listpublic boolean offer(java.lang.Object o)
public java.lang.Object poll()
public java.lang.Object remove()
public java.lang.Object peek()
public java.lang.Object element()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||