|
||||||||||
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 Map
public int size()
size
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public Object get(Object key)
get
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Collection values()
values
in interface Map
public Set entrySet()
entrySet
in interface Map
public void putAll(Map other)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
public final boolean isEmpty()
isEmpty
in interface Map
public final void clear()
clear
in interface Map
public Map.Entry removeLast()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |