Class DenseIntMapImpl

java.lang.Object
com.sun.corba.se.impl.orbutil.DenseIntMapImpl

public class DenseIntMapImpl extends Object
Utility for managing mappings from densely allocated integer keys to arbitrary objects. This should only be used for keys in the range 0..max such that "most" of the key space is actually used.
  • Constructor Details

    • DenseIntMapImpl

      public DenseIntMapImpl()
  • Method Details

    • get

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

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