|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.report.util.KeyedQueue
A keyed queue is a hashtable like structure which will store a certain number of elements. If the defined element size is exceeded, the firstly stored element gets removed.
| Constructor Summary | |
KeyedQueue()
Creates a KeyedQueue with an initial limit of 10 items. |
|
KeyedQueue(int limit)
Creates a KeyedQueue with an initial limit if limit items. |
|
| Method Summary | |
void |
clear()
Removes all elements in the queue. |
java.lang.Object |
clone()
Clones the queue. |
java.lang.Object |
get(java.lang.Object key)
Queries the queue for the value stored under the given key. |
int |
getLimit()
Returns the maximum number of elements in the queue. |
void |
put(java.lang.Object key,
java.lang.Object ob)
Adds a new key/value pair to the queue. |
void |
remove(java.lang.Object key)
Removes the entry stored under the given key. |
void |
removeLast()
Removes the last element in the queue. |
void |
setLimit(int limit)
Defines the maximal number of elements in the queue. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KeyedQueue()
public KeyedQueue(int limit)
limit items.
limit - the maximum number of items.| Method Detail |
public void setLimit(int limit)
limit - the maximum number of items.public int getLimit()
public void put(java.lang.Object key,
java.lang.Object ob)
key - the key.ob - the value.public java.lang.Object get(java.lang.Object key)
key - the key.
public void remove(java.lang.Object key)
key - the key.public void removeLast()
public void clear()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - this should never happen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||