org.apache.cocoon.util
Class MRUBucketMap

java.lang.Object
  extended by org.apache.cocoon.util.MRUBucketMap
All Implemented Interfaces:
Map

Deprecated. Will be removed in Cocoon 2.2

public final class MRUBucketMap
extends Object
implements Map

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.

Version:
CVS $Id: MRUBucketMap.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Vadim Gritsenko

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

MRUBucketMap

public MRUBucketMap()
Deprecated. 
Creates map with default number of buckets.


MRUBucketMap

public MRUBucketMap(int numBuckets)
Deprecated. 
Creates map with specified number of buckets.

Method Detail

keySet

public Set keySet()
Deprecated. 
Specified by:
keySet in interface Map

size

public int size()
Deprecated. 
Returns the current number of key, value pairs.

Specified by:
size in interface Map

put

public Object put(Object key,
                  Object value)
Deprecated. 
Put a reference in the Map.

Specified by:
put in interface Map

get

public Object get(Object key)
Deprecated. 
Specified by:
get in interface Map

containsKey

public boolean containsKey(Object key)
Deprecated. 
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object value)
Deprecated. 
Specified by:
containsValue in interface Map

values

public Collection values()
Deprecated. 
Specified by:
values in interface Map

entrySet

public Set entrySet()
Deprecated. 
Specified by:
entrySet in interface Map

putAll

public void putAll(Map other)
Deprecated. 
Add all the contents of one Map into this one.

Specified by:
putAll in interface Map

remove

public Object remove(Object key)
Deprecated. 
Specified by:
remove in interface Map

isEmpty

public final boolean isEmpty()
Deprecated. 
Specified by:
isEmpty in interface Map

clear

public final void clear()
Deprecated. 
Specified by:
clear in interface Map

removeLast

public Map.Entry removeLast()
Deprecated. 


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.