Class IntFloatDynamicMap

    • Constructor Detail

      • IntFloatDynamicMap

        public IntFloatDynamicMap​(int expectedKeyMax,
                                  float 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,
                        float value)
      • get

        public float get​(int key)
      • forEachValue

        public void forEachValue​(FloatConsumer consumer)
      • remove

        public void remove​(int key)