|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.jboss.threads.ArrayQueue<E>
public final class ArrayQueue<E>
A simple array-backed queue with a fixed size.
| Constructor Summary | |
|---|---|
ArrayQueue(int capacity)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
isEmpty()
|
java.util.Iterator<E> |
iterator()
|
boolean |
offer(E e)
|
E |
peek()
|
E |
poll()
|
int |
size()
|
| Methods inherited from class java.util.AbstractQueue |
|---|
add, addAll, element, remove |
| Methods inherited from class java.util.AbstractCollection |
|---|
contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Queue |
|---|
add, element, remove |
| Methods inherited from interface java.util.Collection |
|---|
addAll, contains, containsAll, equals, hashCode, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public ArrayQueue(int capacity)
| Method Detail |
|---|
public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in class java.util.AbstractCollection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>isEmpty in class java.util.AbstractCollection<E>public int size()
size in interface java.util.Collection<E>size in class java.util.AbstractCollection<E>public boolean offer(E e)
offer in interface java.util.Queue<E>public E poll()
poll in interface java.util.Queue<E>public E peek()
peek in interface java.util.Queue<E>public void clear()
clear in interface java.util.Collection<E>clear in class java.util.AbstractQueue<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||