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:
java.io.Serializable,java.lang.Cloneable,java.util.Map<K,V>
public class ParanoidHashMap<K,V> extends java.util.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
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ParanoidHashMap()ParanoidHashMap(int size)ParanoidHashMap(java.util.Map<K,V> t)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidassertOverridesHashCode(java.lang.Object o)Vput(K arg0, V arg1)voidputAll(java.util.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
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
assertOverridesHashCode
public static void assertOverridesHashCode(java.lang.Object o) throws UnimplementedError- Throws:
UnimplementedError
-
-