|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.util.MRUBucketMap
public final class MRUBucketMap
A MRUBucketMap is an efficient ThreadSafe implementation of a Map with
addition of the removeLast method implementing LRU removal policy.
MRUBucketMap is based on the Avalon's BucketMap.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
MRUBucketMap()
Deprecated. Creates map with default number of buckets. |
|
MRUBucketMap(int numBuckets)
Deprecated. Creates map with specified number of buckets. |
|
| Method Summary | |
|---|---|
void |
clear()
Deprecated. |
boolean |
containsKey(Object key)
Deprecated. |
boolean |
containsValue(Object value)
Deprecated. |
Set |
entrySet()
Deprecated. |
Object |
get(Object key)
Deprecated. |
boolean |
isEmpty()
Deprecated. |
Set |
keySet()
Deprecated. |
Object |
put(Object key,
Object value)
Deprecated. Put a reference in the Map. |
void |
putAll(Map other)
Deprecated. Add all the contents of one Map into this one. |
Object |
remove(Object key)
Deprecated. |
Map.Entry |
removeLast()
Deprecated. |
int |
size()
Deprecated. Returns the current number of key, value pairs. |
Collection |
values()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public MRUBucketMap()
public MRUBucketMap(int numBuckets)
| Method Detail |
|---|
public Set keySet()
keySet in interface Mappublic int size()
size in interface Map
public Object put(Object key,
Object value)
put in interface Mappublic Object get(Object key)
get in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Collection values()
values in interface Mappublic Set entrySet()
entrySet in interface Mappublic void putAll(Map other)
putAll in interface Mappublic Object remove(Object key)
remove in interface Mappublic final boolean isEmpty()
isEmpty in interface Mappublic final void clear()
clear in interface Mappublic Map.Entry removeLast()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||