Class DoubleIntListHashMap


  • public class DoubleIntListHashMap
    extends Object
    This class provides a memory-efficient replacement for HashMap<Double,IntArrayList> for restricted use cases.
    • Field Detail

      • hashMissCount

        public static int hashMissCount
    • Constructor Detail

      • DoubleIntListHashMap

        public DoubleIntListHashMap()
      • DoubleIntListHashMap

        public DoubleIntListHashMap​(int init_capacity)
    • Method Detail

      • size

        public int size()
      • appendValue

        public void appendValue​(double key,
                                int value)
        Append value into the hashmap, but ignore all zero keys.
        Parameters:
        key - The key to add the value to
        value - The value to add