Module org.hsqldb

Class LongKeyHashMap<V>

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

    public class LongKeyHashMap<V>
    extends org.hsqldb.map.BaseHashMap
    implements Map<java.lang.Long,​V>
    A Map of long primitives to Object values.
    Since:
    1.9.0
    Author:
    Fred Toussi (fredt@users dot sourceforge.net)
    • Constructor Detail

      • LongKeyHashMap

        public LongKeyHashMap()
      • LongKeyHashMap

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

      • getReadLock

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

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

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

        public boolean containsKey​(long key)
      • containsValue

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

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

        public V get​(long key)
      • put

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

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

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

        public V remove​(long key)
      • clear

        public void clear()
        Description copied from class: org.hsqldb.map.BaseHashMap
        Clear the map completely.
        Specified by:
        clear in interface Map<java.lang.Long,​V>
        Overrides:
        clear in class org.hsqldb.map.BaseHashMap
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<java.lang.Long,​V>
        Overrides:
        isEmpty in class org.hsqldb.map.BaseHashMap
      • size

        public int size()
        Specified by:
        size in interface Map<java.lang.Long,​V>
        Overrides:
        size in class org.hsqldb.map.BaseHashMap
      • keysToArray

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

        public java.lang.Object[] valuesToArray()
      • valuesToArray

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

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

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