Module org.hsqldb

Class IntValueHashMap<K>


  • public class IntValueHashMap<K>
    extends org.hsqldb.map.BaseHashMap
    A Map of Object keys to int primitive values.

    This class does not store null keys.

    Since:
    1.7.2
    Author:
    Fred Toussi (fredt@users dot sourceforge.net)
    • Field Summary

      • Fields inherited from class org.hsqldb.map.BaseHashMap

        ACCESS_MAX, emptyObjectArray
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(int value)  
      boolean containsValue​(java.lang.Object value)  
      Set<Map.Entry<K,​java.lang.Integer>> entrySet()  
      int get​(java.lang.Object key)  
      int get​(java.lang.Object key, int defaultValue)  
      boolean get​(java.lang.Object key, int[] value)  
      java.lang.Object getKey​(int value)  
      Set<K> keySet()  
      boolean put​(K key, int value)  
      void putAll​(IntValueHashMap<K> other)  
      boolean remove​(java.lang.Object key)  
      Collection<java.lang.Integer> values()  
      • Methods inherited from class org.hsqldb.map.BaseHashMap

        clear, clone, isEmpty, size
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntValueHashMap

        public IntValueHashMap()
      • IntValueHashMap

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

      • containsKey

        public boolean containsKey​(java.lang.Object key)
      • containsValue

        public boolean containsValue​(java.lang.Object value)
      • containsValue

        public boolean containsValue​(int value)
      • get

        public int get​(java.lang.Object key)
                throws java.util.NoSuchElementException
        Throws:
        java.util.NoSuchElementException
      • get

        public int get​(java.lang.Object key,
                       int defaultValue)
      • get

        public boolean get​(java.lang.Object key,
                           int[] value)
      • getKey

        public java.lang.Object getKey​(int value)
      • put

        public boolean put​(K key,
                           int value)
      • remove

        public boolean remove​(java.lang.Object key)
      • keySet

        public Set<K> keySet()
      • values

        public Collection<java.lang.Integer> values()
      • entrySet

        public Set<Map.Entry<K,​java.lang.Integer>> entrySet()