Class IntIntDynamicMap

    • Constructor Detail

      • IntIntDynamicMap

        public IntIntDynamicMap​(int expectedKeyMax,
                                int emptyValue)
        Create map with expected max value of key. Although the map will automatically do resizing to be able to hold key >= 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,
                        int value)
      • get

        public int get​(int key)
      • forEachValue

        public void forEachValue​(IntConsumer consumer)
      • remove

        public void remove​(int key)