Module org.hsqldb

Class IntKeyHashMapConcurrent<V>

  • All Implemented Interfaces:
    Map<java.lang.Integer,​V>

    public class IntKeyHashMapConcurrent<V>
    extends org.hsqldb.map.BaseHashMap
    implements Map<java.lang.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)
    • Constructor Detail

      • IntKeyHashMapConcurrent

        public IntKeyHashMapConcurrent()
      • IntKeyHashMapConcurrent

        public IntKeyHashMapConcurrent​(int initialCapacity)
                                throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • getWriteLock

        public java.util.concurrent.locks.Lock getWriteLock()
      • containsKey

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

        public boolean containsKey​(int key)
      • containsValue

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

        public V get​(java.lang.Object key)
        Specified by:
        get in interface Map<java.lang.Integer,​V>
      • get

        public V get​(int key)
      • put

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

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

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

        public V remove​(int key)
      • putAll

        public void putAll​(Map<? extends java.lang.Integer,​? extends V> other)
        Specified by:
        putAll in interface Map<java.lang.Integer,​V>
      • getOrderedKeyMatchCount

        public int getOrderedKeyMatchCount​(int[] array)
      • keysToArray

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

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

        public Set<java.lang.Integer> keySet()
        Specified by:
        keySet in interface Map<java.lang.Integer,​V>
      • entrySet

        public Set<Map.Entry<java.lang.Integer,​V>> entrySet()
        Specified by:
        entrySet in interface Map<java.lang.Integer,​V>