Package com.ibm.wala.util.collections
Class ParanoidHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- com.ibm.wala.util.collections.ParanoidHashMap<K,V>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<K,V>
public class ParanoidHashMap<K,V> extends LinkedHashMap<K,V>
a debugging aid. This implementation complains if you stick an object in here which appears to use System.identityHashCode()- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ParanoidHashMap()
ParanoidHashMap(int size)
ParanoidHashMap(Map<K,V> t)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
assertOverridesHashCode(Object o)
V
put(K arg0, V arg1)
void
putAll(Map<? extends K,? extends V> arg0)
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParanoidHashMap
public ParanoidHashMap(Map<K,V> t) throws NullPointerException
- Parameters:
t
-- Throws:
NullPointerException
- if t is null
-
ParanoidHashMap
public ParanoidHashMap(int size)
-
ParanoidHashMap
public ParanoidHashMap()
-
-
Method Detail
-
assertOverridesHashCode
public static void assertOverridesHashCode(Object o) throws UnimplementedError
- Throws:
UnimplementedError
-
-