Class HashMapFactory

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

public class HashMapFactory extends Object
A debugging aid. When HashSetFactory.DEBUG is set, this class creates ParanoidHashMaps. Otherwise, it returns LinkedHashMap
  • Constructor Details

    • HashMapFactory

      public HashMapFactory()
  • Method Details

    • make

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

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

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