Class IntKeyHashMap<V>

java.lang.Object
org.hsqldb.lib.IntKeyHashMap<V>
All Implemented Interfaces:
Map<Integer,V>
Direct Known Subclasses:
OrderedIntKeyHashMap

public class IntKeyHashMap<V> extends Object implements Map<Integer,V>
A Map of int primitives to Object values.
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

  • Method Details

    • 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)
    • keysToArray

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

      public Object[] valuesToArray()
    • valuesToArray

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

      public int[] getKeyArray()
    • getValueArray

      public Object[] getValueArray()
    • 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()