|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.zig_project.gpl.common.queue.LinearQueueBase
net.sf.zig_project.gpl.common.queue.LinkedQueue
net.sf.zig_project.gpl.common.queue.LinkedFifoQueue
Provides a FIFO oriented implementation of a LinkedQueue. By default
Nested Class Summary |
Nested classes inherited from class net.sf.zig_project.gpl.common.queue.LinkedQueue |
LinkedQueue.LinkedSequencer, LinkedQueue.QueueEntry |
Field Summary | |
protected LinkedQueue.QueueEntry |
last
|
Fields inherited from class net.sf.zig_project.gpl.common.queue.LinkedQueue |
first |
Constructor Summary | |
LinkedFifoQueue()
|
Method Summary | |
protected void |
addLastEntry(LinkedQueue.QueueEntry qe)
Adds an entry to the end of the current Queue. |
protected boolean |
addUnique(LinkedQueue.QueueEntry qe)
Called by addEntry methods to do any special setup. |
void |
clear()
Empties the Queue. |
protected LinkedQueue.QueueEntry |
lastEntry()
Retrieves the last entry from the Queue. |
protected LinkedQueue.QueueEntry |
removeFirstEntry()
Removes the first QueueEntry from the Queue. |
protected LinkedQueue.QueueEntry |
removeLastEntry()
Removes the last QueueEntry from the Queue. |
protected void |
unlink(LinkedQueue.QueueEntry entry,
LinkedQueue.QueueEntry parent)
Unlinks a QueueEntry out of the current Queue. |
Methods inherited from class net.sf.zig_project.gpl.common.queue.LinkedQueue |
addFirst, addFirstEntry, addLast, contains, createEntryFor, elements, firstEntry, isEmpty, peekFirst, peekLast, remove, removeEntryOf, removeFirst, removeLast |
Methods inherited from class net.sf.zig_project.gpl.common.queue.LinearQueueBase |
add, addSet, appendFlat, appendFlat, appendUnrolled, appendUnrolled, bulkMoveTest, prependFlat, prependFlat, prependUnrolled, prependUnrolled, toString, transferTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected LinkedQueue.QueueEntry last
Constructor Detail |
public LinkedFifoQueue()
Method Detail |
protected LinkedQueue.QueueEntry lastEntry()
LinkedQueue
lastEntry
in class LinkedQueue
public void clear()
Queue
clear
in interface Queue
clear
in class LinkedQueue
protected void addLastEntry(LinkedQueue.QueueEntry qe)
addLastEntry
in class LinkedQueue
qe
- the entry to addLinkedQueue.addUnique(LinkedQueue.QueueEntry)
protected void unlink(LinkedQueue.QueueEntry entry, LinkedQueue.QueueEntry parent)
LinkedQueue
LinkedQueue.remove(Object)
, but generally not by
more specialized implementations, such as
LinkedQueue.removeFirstEntry()
or LinkedQueue.removeLastEntry()
.
unlink
in class LinkedQueue
entry
- the entry to unlinkparent
- the parent of entry. if parent==null
it is assumed that first==entry
. Otherwise
it is assumed that parent.next==entry
protected LinkedQueue.QueueEntry removeLastEntry()
LinkedQueue
removeLastEntry
in class LinkedQueue
protected boolean addUnique(LinkedQueue.QueueEntry qe)
LinkedQueue
addUnique
in class LinkedQueue
qe
- the entry to add to the Queue
protected LinkedQueue.QueueEntry removeFirstEntry()
LinkedQueue
removeFirstEntry
in class LinkedQueue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |