Module org.hsqldb

Class LongKeyHashMap<V>

java.lang.Object
org.hsqldb.map.BaseHashMap
org.hsqldb.lib.LongKeyHashMap<V>
All Implemented Interfaces:
Map<Long,V>

public class LongKeyHashMap<V> extends org.hsqldb.map.BaseHashMap implements Map<Long,V>
A Map of long primitives to Object values.

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

  • Method Details

    • getReadLock

      public Lock getReadLock()
    • getWriteLock

      public Lock getWriteLock()
    • containsKey

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

      public boolean containsKey(long key)
    • containsValue

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

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

      public V get(long key)
    • put

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

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

      public V remove(Object key)
      Specified by:
      remove in interface Map<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<Long,V>
      Overrides:
      clear in class org.hsqldb.map.BaseHashMap
    • isEmpty

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

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

      public void putAll(Map<? extends Long,? extends V> other)
      Specified by:
      putAll in interface Map<Long,V>
    • putAll

      public void putAll(LongKeyHashMap other)
    • keysToArray

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

      public Object[] valuesToArray()
    • valuesToArray

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

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

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

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