public class CounterQueue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap |
_counters
the counters *
|
Constructor and Description |
---|
CounterQueue() |
Modifier and Type | Method and Description |
---|---|
private java.util.List |
_getList(java.lang.Object o)
Get the list for the counter object
|
boolean |
addToQueue(java.lang.Object o,
java.lang.Object queuer)
Add an queuer to the queue of the counter object.
|
java.util.List |
clearQueue(java.lang.Object o)
Clear the queue of the counter object
|
java.util.List |
getQueue(java.lang.Object o)
Get the (unmodifiable) queue of the counter object
|
boolean |
removeFromQueue(java.lang.Object o,
java.lang.Object queuer)
Remove the queuer from the queue of the counter object.
|
java.lang.Object |
removeNextFromQueue(java.lang.Object counter)
Remove the next queuer in the queue.
|
private java.util.List _getList(java.lang.Object o)
o
- the counter objectpublic java.util.List getQueue(java.lang.Object o)
o
- the counter objectpublic java.util.List clearQueue(java.lang.Object o)
o
- the counter objectpublic boolean addToQueue(java.lang.Object o, java.lang.Object queuer)
o
- the counter objectqueuer
- the queuepublic java.lang.Object removeNextFromQueue(java.lang.Object counter)
counter
- the counterpublic boolean removeFromQueue(java.lang.Object o, java.lang.Object queuer)
o
- the counter objectqueuer
- the queuer