com.ibm.wala.util.collections
Class HashMapFactory

java.lang.Object
  extended by com.ibm.wala.util.collections.HashMapFactory

public class HashMapFactory
extends java.lang.Object

A debugging aid. When HashSetFactory.DEBUG is set, this class creates ParanoidHashMaps. Otherwise, it returns LinkedHashMap


Constructor Summary
HashMapFactory()
           
 
Method Summary
static
<K,V> java.util.HashMap<K,V>
make()
           
static
<K,V> java.util.HashMap<K,V>
make(int size)
           
static
<K,V> java.util.HashMap<K,V>
make(java.util.Map<K,V> t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashMapFactory

public HashMapFactory()
Method Detail

make

public static <K,V> java.util.HashMap<K,V> make(int size)
Parameters:
size -
Returns:
A ParanoidHashMap if DEBUG = true, a LinkedHashMap otherwise

make

public static <K,V> java.util.HashMap<K,V> make()
Returns:
A ParanoidHashMap if DEBUG = true, a LinkedHashMap otherwise

make

public static <K,V> java.util.HashMap<K,V> make(java.util.Map<K,V> t)
Parameters:
t -
Returns:
A ParanoidHashMap if DEBUG = true, a LinkedHashMap otherwise