Class LongObjectHash

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsLong​(long num)  
      java.lang.Object get​(long num)  
      long getSize()  
      void put​(long num, java.lang.Object obj)  
      boolean putNoReplace​(long num, java.lang.Object obj)  
      protected void rehash()  
      java.lang.Object remove​(long num)  
      • Methods inherited from class java.lang.Object

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

      • LongObjectHash

        public LongObjectHash​(int init_capacity,
                              float load_factor)
      • LongObjectHash

        public LongObjectHash()
    • Method Detail

      • get

        public java.lang.Object get​(long num)
        Specified by:
        get in interface LongObjectMap
      • put

        public void put​(long num,
                        java.lang.Object obj)
        Specified by:
        put in interface LongObjectMap
      • putNoReplace

        public boolean putNoReplace​(long num,
                                    java.lang.Object obj)
        Specified by:
        putNoReplace in interface LongObjectMap
      • remove

        public java.lang.Object remove​(long num)
        Specified by:
        remove in interface LongObjectMap
      • rehash

        protected void rehash()