Class IntLongDynamicMap

    • Constructor Detail

      • IntLongDynamicMap

        public IntLongDynamicMap​(int expectedKeyMax,
                                 long emptyValue)
        Create map with expected max value of key. Although the map will automatically do resizing to be able to hold key >=g expectedKeyMax. But putting key much larger than expectedKeyMax is discourage since it can leads to use LOT OF memory.
    • Method Detail

      • put

        public void put​(int key,
                        long value)
      • get

        public long get​(int key)
      • forEachValue

        public void forEachValue​(LongConsumer consumer)
      • remove

        public void remove​(int key)