Package com.mchange.v1.identicator
Class IdWeakHashMap
- java.lang.Object
-
- java.util.AbstractMap
-
- com.mchange.v1.identicator.IdWeakHashMap
-
- All Implemented Interfaces:
java.util.Map
public final class IdWeakHashMap extends java.util.AbstractMap implements java.util.Map
IdWeakHashMap is NOT null-accepting!
-
-
Constructor Summary
Constructors Constructor Description IdWeakHashMap(Identicator id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object o)
boolean
containsValue(java.lang.Object o)
protected java.util.Map.Entry
createIdEntry(java.lang.Object key, java.lang.Object val)
protected java.util.Map.Entry
createIdEntry(java.util.Map.Entry entry)
protected com.mchange.v1.identicator.IdHashKey
createIdKey(java.lang.Object o)
java.util.Set
entrySet()
boolean
equals(java.lang.Object o)
java.lang.Object
get(java.lang.Object o)
int
hashCode()
protected java.util.Set
internalEntrySet()
boolean
isEmpty()
java.util.Set
keySet()
java.lang.Object
put(java.lang.Object k, java.lang.Object v)
void
putAll(java.util.Map m)
java.lang.Object
remove(java.lang.Object o)
protected java.lang.Object
removeIdHashKey(com.mchange.v1.identicator.IdHashKey idhk)
int
size()
java.util.Collection
values()
-
-
-
Constructor Detail
-
IdWeakHashMap
public IdWeakHashMap(Identicator id)
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map
- Overrides:
size
in classjava.util.AbstractMap
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map
- Overrides:
isEmpty
in classjava.util.AbstractMap
-
containsKey
public boolean containsKey(java.lang.Object o)
- Specified by:
containsKey
in interfacejava.util.Map
-
containsValue
public boolean containsValue(java.lang.Object o)
- Specified by:
containsValue
in interfacejava.util.Map
- Overrides:
containsValue
in classjava.util.AbstractMap
-
get
public java.lang.Object get(java.lang.Object o)
- Specified by:
get
in interfacejava.util.Map
-
put
public java.lang.Object put(java.lang.Object k, java.lang.Object v)
- Specified by:
put
in interfacejava.util.Map
-
remove
public java.lang.Object remove(java.lang.Object o)
- Specified by:
remove
in interfacejava.util.Map
-
putAll
public void putAll(java.util.Map m)
- Specified by:
putAll
in interfacejava.util.Map
- Overrides:
putAll
in classjava.util.AbstractMap
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map
- Overrides:
clear
in classjava.util.AbstractMap
-
keySet
public java.util.Set keySet()
- Specified by:
keySet
in interfacejava.util.Map
- Overrides:
keySet
in classjava.util.AbstractMap
-
values
public java.util.Collection values()
- Specified by:
values
in interfacejava.util.Map
- Overrides:
values
in classjava.util.AbstractMap
-
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet
in interfacejava.util.Map
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Map
- Overrides:
equals
in classjava.util.AbstractMap
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map
- Overrides:
hashCode
in classjava.util.AbstractMap
-
createIdKey
protected com.mchange.v1.identicator.IdHashKey createIdKey(java.lang.Object o)
-
removeIdHashKey
protected java.lang.Object removeIdHashKey(com.mchange.v1.identicator.IdHashKey idhk)
-
internalEntrySet
protected final java.util.Set internalEntrySet()
-
createIdEntry
protected final java.util.Map.Entry createIdEntry(java.lang.Object key, java.lang.Object val)
-
createIdEntry
protected final java.util.Map.Entry createIdEntry(java.util.Map.Entry entry)
-
-