Class 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

      Constructors 
      Constructor Description
      HashMapFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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