Class HashMapFactory


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

      • HashMapFactory

        public HashMapFactory()
    • Method Detail

      • make

        public static <K,​V> HashMap<K,​V> make​(int size)
        Parameters:
        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)
        Parameters:
        t -
        Returns:
        A ParanoidHashMap if DEBUG = true, a LinkedHashMap otherwise