Interface IntMap<E>

  • All Known Implementing Classes:
    DenseIntMapImpl

    public interface IntMap<E>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      E get​(int key)
      If key >= 0, return the value bound to key, or null if none.
      void set​(int key, E value)
      If key >= 0, bind value to the key.
    • Method Detail

      • get

        E get​(int key)
        If key >= 0, return the value bound to key, or null if none. Throws IllegalArgumentException if key <0.
      • set

        void set​(int key,
                 E value)
        If key >= 0, bind value to the key. Throws IllegalArgumentException if key <0.