Class Int2ObjListMap<T>

java.lang.Object
org.apache.uima.internal.util.Int2ObjListMap<T>

public class Int2ObjListMap<T> extends Object
A map<int, T> based on ArrayList This impl is for use in a single thread case only Implements Map - like interface: keys are ints ≥ 0 values can be anything, but null is the value returned by get if not found so values probably should not be null remove not currently supported
  • Constructor Details

    • Int2ObjListMap

      public Int2ObjListMap()
    • Int2ObjListMap

      public Int2ObjListMap(int initialSize)
  • Method Details

    • clear

      public void clear()
    • get

      public T get(int key)
    • put

      public T put(int key, T value)