|
||||||||||
| 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.LinearOrderedQueue
Adapts a LinearQueue into an OrderedQueue
| Field Summary | |
protected LinearQueue |
queue
|
| Constructor Summary | |
LinearOrderedQueue(LinearQueue q)
|
|
| Method Summary | |
void |
add(Object o)
Adds a single Object to the Queue. |
void |
addSet(Enumeration e)
Adds an entire Enumeration of elements to the Queue. |
protected abstract void |
appendFlatTo(LinearQueue q)
|
protected abstract void |
appendUnrolledTo(LinearQueue q)
|
void |
clear()
Empties the Queue. |
boolean |
contains(Object o)
Determines if the Queue contains a copy of the specified Object. |
Enumeration |
elements()
Retrieves a list of the elements currently in the queue in a form suitable to enumerate over. |
boolean |
isEmpty()
Determines if the Queue is empty. |
protected abstract void |
prependFlatTo(LinearQueue q)
|
protected abstract void |
prependUnrolledTo(LinearQueue q)
|
Object |
remove(Object o)
Removes the first found element that is equal to o from the queue. |
String |
toString()
|
boolean |
transferTo(Object o,
GenericBlockingQueue q)
Transfers an Object, if it exists, out of this Queue and into another. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.zig_project.gpl.common.queue.OrderedBlockingQueue |
peekNext, removeNext |
| Methods inherited from interface net.sf.zig_project.gpl.common.queue.OrderedQueue |
removeNext |
| Field Detail |
protected final LinearQueue queue
| Constructor Detail |
public LinearOrderedQueue(LinearQueue q)
| Method Detail |
public void clear()
Queue
clear in interface Queuepublic void add(Object o)
GenericBlockingQueue
add in interface GenericBlockingQueueo - the Object to be addedpublic boolean isEmpty()
Queue
isEmpty in interface Queuepublic Enumeration elements()
Queue
elements in interface Queuepublic void addSet(Enumeration e)
GenericBlockingQueue
addSet in interface GenericBlockingQueuee - a enumerable set of elementspublic String toString()
public boolean transferTo(Object o,
GenericBlockingQueue q)
GenericBlockingQueue
transferTo in interface GenericBlockingQueueo - a copy of the Object to transferq - the Queue to transfer the copy to
public Object remove(Object o)
Queue
remove in interface Queueo - a copy of the Object to be removed
public boolean contains(Object o)
Queue
contains in interface Queueo - an Object to look for copies of
protected abstract void appendFlatTo(LinearQueue q)
protected abstract void appendUnrolledTo(LinearQueue q)
protected abstract void prependFlatTo(LinearQueue q)
protected abstract void prependUnrolledTo(LinearQueue q)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||