com.mchange.v2.util
Class DoubleWeakHashMap

java.lang.Object
  extended by com.mchange.v2.util.DoubleWeakHashMap
All Implemented Interfaces:
Map

public class DoubleWeakHashMap
extends Object
implements Map

This class is not Thread safe. Use in single threaded contexts, or contexts where single threaded-access can be guaranteed, or wrap with Collections.synchronizedMap().

This class does not accept null keys or values.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
DoubleWeakHashMap()
           
DoubleWeakHashMap(int initialCapacity)
           
DoubleWeakHashMap(int initialCapacity, float loadFactor)
           
DoubleWeakHashMap(Map m)
           
 
Method Summary
 void cleanCleared()
           
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object val)
           
 Set entrySet()
           
 Object get(Object key)
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object val)
           
 void putAll(Map m)
           
 Object remove(Object key)
           
 int size()
           
 Collection 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

DoubleWeakHashMap

public DoubleWeakHashMap()

DoubleWeakHashMap

public DoubleWeakHashMap(int initialCapacity)

DoubleWeakHashMap

public DoubleWeakHashMap(int initialCapacity,
                         float loadFactor)

DoubleWeakHashMap

public DoubleWeakHashMap(Map m)
Method Detail

cleanCleared

public void cleanCleared()

clear

public void clear()
Specified by:
clear in interface Map

containsKey

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

containsValue

public boolean containsValue(Object val)
Specified by:
containsValue in interface Map

entrySet

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

get

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

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

keySet

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

put

public Object put(Object key,
                  Object val)
Specified by:
put in interface Map

putAll

public void putAll(Map m)
Specified by:
putAll in interface Map

remove

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

size

public int size()
Specified by:
size in interface Map

values

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