Module org.hsqldb

Class LongKeyIntValueHashMap

  • All Implemented Interfaces:

    public class LongKeyIntValueHashMap
    implements Map<java.lang.Long,​java.lang.Integer>
    A Map of long primitives to int primitives.

    Fred Toussi (fredt@users dot
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.hsqldb.lib.Map

    • Field Summary

      • Fields inherited from class

        ACCESS_MAX, emptyObjectArray
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(long key)  
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(int value)  
      boolean containsValue​(java.lang.Object value)  
      Set<Map.Entry<java.lang.Long,​java.lang.Integer>> entrySet()  
      int get​(long key)  
      int get​(long key, int defaultValue)  
      boolean get​(long key, int[] value)  
      java.lang.Integer get​(java.lang.Object key)  
      int getLookup​(long key)  
      Set<java.lang.Long> keySet()  
      long[] keysToArray​(long[] array)  
      boolean put​(long key, int value)  
      java.lang.Integer put​(java.lang.Long key, java.lang.Integer value)  
      void putAll​(LongKeyIntValueHashMap other)  
      void putAll​(Map<? extends java.lang.Long,​? extends java.lang.Integer> other)  
      boolean remove​(long key)  
      java.lang.Integer remove​(java.lang.Object key)  
      Collection<java.lang.Integer> values()  
      int[] valuesToArray​(int[] array)  
      • Methods inherited from class

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

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

      • LongKeyIntValueHashMap

        public LongKeyIntValueHashMap()
      • LongKeyIntValueHashMap

        public LongKeyIntValueHashMap​(boolean minimize)
      • LongKeyIntValueHashMap

        public LongKeyIntValueHashMap​(int initialCapacity)
                               throws java.lang.IllegalArgumentException
    • Method Detail

      • containsKey

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

        public boolean containsKey​(long key)
      • containsValue

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

        public boolean containsValue​(int value)
      • get

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

        public int get​(long key)
                throws java.util.NoSuchElementException
      • get

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

        public boolean get​(long key,
                           int[] value)
      • getLookup

        public int getLookup​(long key)
      • put

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

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

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

        public boolean remove​(long key)
      • putAll

        public void putAll​(Map<? extends java.lang.Long,​? extends java.lang.Integer> other)
        Specified by:
        putAll in interface Map<java.lang.Long,​java.lang.Integer>
      • keysToArray

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

        public int[] valuesToArray​(int[] array)
      • keySet

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

        public Collection<java.lang.Integer> values()
        Specified by:
        values in interface Map<java.lang.Long,​java.lang.Integer>
      • entrySet

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