Class ArrayMap<K,V>

java.lang.Object
org.eclipse.osgi.framework.util.ArrayMap<K,V>
Type Parameters:
K - The key type
V - the value type
All Implemented Interfaces:
Iterable<K>, Collection<K>

public class ArrayMap<K,V> extends Object implements Collection<K>
Simple map when dealing with small amounts of entries. This class also provides a Collections view of the keys
  • Constructor Details

    • ArrayMap

      public ArrayMap(int initialCapacity)
    • ArrayMap

      public ArrayMap(List<K> keys, List<V> values)
      Note that the keys and values are not copied. Changes to this ArrayMap will change the values of the keys and values Lists.
  • Method Details