|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<T>
org.archive.queue.MemQueue<T>
public class MemQueue<T>
An in-memory implementation of a Queue
.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
MemQueue()
Create a new, empty MemQueue |
Method Summary | |
---|---|
long |
deleteMatchedItems(org.apache.commons.collections.Predicate matcher)
|
T |
dequeue()
|
void |
enqueue(T o)
|
java.util.Iterator<T> |
getIterator(boolean inCacheOnly)
|
long |
length()
|
T |
peek()
|
void |
release()
|
void |
unpeek()
|
Methods inherited from class java.util.LinkedList |
---|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray |
Methods inherited from class java.util.AbstractSequentialList |
---|
iterator |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, listIterator, removeRange, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, isEmpty, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.archive.queue.Queue |
---|
isEmpty |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public MemQueue()
Method Detail |
---|
public void enqueue(T o)
Queue.enqueue(Object)
public T dequeue()
Queue.dequeue()
public long length()
Queue.length()
public void release()
Queue.release()
public T peek()
peek
in interface java.util.Queue<T>
peek
in class java.util.LinkedList<T>
Queue.peek()
public java.util.Iterator<T> getIterator(boolean inCacheOnly)
Queue.getIterator(boolean)
public long deleteMatchedItems(org.apache.commons.collections.Predicate matcher)
Queue.deleteMatchedItems(org.apache.commons.collections.Predicate)
public void unpeek()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |