Class IntKeyHashMapConcurrent<V>

java.lang.Object
org.hsqldb.lib.IntKeyHashMapConcurrent<V>
All Implemented Interfaces:
Map<Integer,V>

public class IntKeyHashMapConcurrent<V> extends Object implements Map<Integer,V>
A Map of int primitives to Object values, suitable for thread-safe access.

Iterators of keys or values are not thread-safe.

Since:
1.9.0
Author:
Fred Toussi (fredt@users dot sourceforge.net)
  • Field Details

    • ACCESS_MAX

      public static final int ACCESS_MAX
      See Also:
    • emptyObjectArray

      public static final Object[] emptyObjectArray
  • Constructor Details

  • Method Details

    • getWriteLock

      public Lock getWriteLock()
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map<Integer,V>
    • containsKey

      public boolean containsKey(int key)
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface Map<Integer,V>
    • get

      public V get(Integer key)
      Specified by:
      get in interface Map<Integer,V>
    • get

      public V get(int key)
    • put

      public V put(Integer key, V value)
      Specified by:
      put in interface Map<Integer,V>
    • put

      public V put(int key, V value)
    • remove

      public V remove(Object key)
      Specified by:
      remove in interface Map<Integer,V>
    • remove

      public V remove(int key)
    • putAll

      public void putAll(IntKeyHashMap<V> other)
    • getOrderedKeyMatchCount

      public int getOrderedKeyMatchCount(int[] array)
    • keysToArray

      public int[] keysToArray(int[] array)
    • valuesToArray

      public <T> T[] valuesToArray(T[] array)
    • keySet

      public Set<Integer> keySet()
      Specified by:
      keySet in interface Map<Integer,V>
    • values

      public Collection<V> values()
      Specified by:
      values in interface Map<Integer,V>
    • entrySet

      public Set<Map.Entry<Integer,V>> entrySet()
      Specified by:
      entrySet in interface Map<Integer,V>
    • clear

      public void clear()
      Clear the map completely.
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • clone

      public org.hsqldb.map.BaseHashMap clone()