Class LongKeyLongValueHashMap

java.lang.Object
org.hsqldb.lib.LongKeyLongValueHashMap
All Implemented Interfaces:
Map<Long,Long>

public class LongKeyLongValueHashMap extends Object implements Map<Long,Long>
A Map of long primitives to long primitive.
Since:
1.7.2
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

    • LongKeyLongValueHashMap

      public LongKeyLongValueHashMap()
    • LongKeyLongValueHashMap

      public LongKeyLongValueHashMap(int initialCapacity) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • LongKeyLongValueHashMap

      public LongKeyLongValueHashMap(boolean minimize)
  • Method Details

    • containsKey

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

      public boolean containsKey(long key)
    • containsValue

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

      public boolean containsValue(long value)
    • get

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

      public long get(long key) throws NoSuchElementException
      Throws:
      NoSuchElementException
    • get

      public long get(long key, long defaultValue)
    • get

      public boolean get(long key, long[] value)
    • put

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

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

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

      public boolean remove(long key)
    • putAll

      public void putAll(LongKeyLongValueHashMap other)
    • keysToArray

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

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

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

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

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

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

      public int size()
    • isEmpty

      public boolean isEmpty()
    • clone

      public org.hsqldb.map.BaseHashMap clone()