com.mchange.v1.identicator
Class IdWeakHashMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by com.mchange.v1.identicator.IdWeakHashMap
All Implemented Interfaces:
Map

public final class IdWeakHashMap
extends AbstractMap
implements Map

IdWeakHashMap is NOT null-accepting!


Nested Class Summary
protected static class IdMap.UserEntry
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
IdWeakHashMap(Identicator id)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object o)
           
 boolean containsValue(Object o)
           
protected  Map.Entry createIdEntry(Map.Entry entry)
           
protected  Map.Entry createIdEntry(Object key, Object val)
           
protected  com.mchange.v1.identicator.IdHashKey createIdKey(Object o)
           
 Set entrySet()
           
 boolean equals(Object o)
           
 Object get(Object o)
           
 int hashCode()
           
protected  Set internalEntrySet()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object k, Object v)
           
 void putAll(Map m)
           
 Object remove(Object o)
           
protected  Object removeIdHashKey(com.mchange.v1.identicator.IdHashKey idhk)
           
 int size()
           
 Collection values()
           
 
Methods inherited from class java.util.AbstractMap
clone, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdWeakHashMap

public IdWeakHashMap(Identicator id)
Method Detail

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class AbstractMap

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map
Overrides:
isEmpty in class AbstractMap

containsKey

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

containsValue

public boolean containsValue(Object o)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class AbstractMap

get

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

put

public Object put(Object k,
                  Object v)
Specified by:
put in interface Map

remove

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

putAll

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

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class AbstractMap

keySet

public Set keySet()
Specified by:
keySet in interface Map
Overrides:
keySet in class AbstractMap

values

public Collection values()
Specified by:
values in interface Map
Overrides:
values in class AbstractMap

entrySet

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

equals

public boolean equals(Object o)
Specified by:
equals in interface Map
Overrides:
equals in class AbstractMap

hashCode

public int hashCode()
Specified by:
hashCode in interface Map
Overrides:
hashCode in class AbstractMap

createIdKey

protected com.mchange.v1.identicator.IdHashKey createIdKey(Object o)

removeIdHashKey

protected Object removeIdHashKey(com.mchange.v1.identicator.IdHashKey idhk)

internalEntrySet

protected final Set internalEntrySet()

createIdEntry

protected final Map.Entry createIdEntry(Object key,
                                        Object val)

createIdEntry

protected final Map.Entry createIdEntry(Map.Entry entry)