com.ibm.wala.util.collections
Class ParanoidHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by 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.HashMap<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
static long serialVersionUID
           
 
Constructor Summary
ParanoidHashMap()
           
ParanoidHashMap(int size)
           
ParanoidHashMap(java.util.Map<K,V> t)
           
 
Method Summary
 V put(K arg0, V arg1)
           
 void putAll(java.util.Map<? extends K,? extends V> arg0)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values
 
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
equals, hashCode
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ParanoidHashMap

public ParanoidHashMap(java.util.Map<K,V> t)
                throws java.lang.NullPointerException
Parameters:
t -
Throws:
java.lang.NullPointerException - if t is null

ParanoidHashMap

public ParanoidHashMap(int size)

ParanoidHashMap

public ParanoidHashMap()
Method Detail

put

public V put(K arg0,
             V arg1)
Specified by:
put in interface java.util.Map<K,V>
Overrides:
put in class java.util.HashMap<K,V>

putAll

public void putAll(java.util.Map<? extends K,? extends V> arg0)
Specified by:
putAll in interface java.util.Map<K,V>
Overrides:
putAll in class java.util.HashMap<K,V>