|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.excalibur.collections.BucketMap
A BucketMap is an efficient thread-safe implementation of the
java.util.Map
. The map supports get
,
put
, and contains
methods most efficiently.
The other methods are supported, but are ver inneficient compared to
other java.util.Map
implementations.
Constructor Summary | |
BucketMap()
Deprecated. Initializes the map with the default number of buckets. |
|
BucketMap(int numBuckets)
Deprecated. Initializes the map with a specified number of buckets. |
Method Summary | |
void |
clear()
Deprecated. Removes all the entries from the Map. |
boolean |
containsKey(Object key)
Deprecated. Checks to see if the provided key exists in the Map. |
boolean |
containsValue(Object value)
Deprecated. Checks to see if a value exists. |
Set |
entrySet()
Deprecated. Obtain a Set for the entries. |
Object |
get(Object key)
Deprecated. Get an object from the Map by the key |
boolean |
isEmpty()
Deprecated. Tests if the Map is empty. |
Set |
keySet()
Deprecated. Obtain a Set for the keys. |
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. Removes the object from the Map based on the key. |
int |
size()
Deprecated. Returns the current number of key, value pairs. |
Collection |
values()
Deprecated. Obtain a Set for the values. |
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 BucketMap()
public BucketMap(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |