|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractQueue<T> jpaul.DataStructs.WorkQueue<T>
public class WorkQueue<T>
WorkQueue
Constructor Summary | |
---|---|
WorkQueue()
|
|
WorkQueue(int blockCapacity)
Creates a WorkQueue . |
Method Summary | |
---|---|
boolean |
isEmpty()
|
java.util.Iterator<T> |
iterator()
|
boolean |
offer(T elem)
|
T |
peek()
|
T |
poll()
|
int |
size()
|
Methods inherited from class java.util.AbstractQueue |
---|
add, addAll, clear, 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.Collection |
---|
contains, containsAll, equals, hashCode, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public WorkQueue()
public WorkQueue(int blockCapacity)
WorkQueue
.
Method Detail |
---|
public boolean offer(T elem)
public boolean isEmpty()
isEmpty
in interface java.util.Collection<T>
isEmpty
in class java.util.AbstractCollection<T>
public T peek()
public T poll()
public int size()
size
in interface java.util.Collection<T>
size
in class java.util.AbstractCollection<T>
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
iterator
in interface java.util.Collection<T>
iterator
in class java.util.AbstractCollection<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |