Example #1
0
 public LongHashMapEntry(int par1, long par2, Object par4Obj, LongHashMapEntry par5LongHashMapEntry)
 {
     this.value     = par4Obj;
     this.nextEntry = par5LongHashMapEntry;
     this.key       = par2;
     this.hash      = par1;
 }
Example #2
0
 public LongHashMapEntry(int par1, long par2, Object par4Obj, LongHashMapEntry par5LongHashMapEntry)
 {
     this.value = par4Obj;
     this.nextEntry = par5LongHashMapEntry;
     this.key = par2;
     this.hash = par1;
 }
Example #3
0
        /**
         * resizes the table
         */
        private void resizeTable(int par1)
        {
            LongHashMapEntry[] var2 = this.hashArray;
            int var3 = var2.Length;

            if (var3 == 1073741824)
            {
                this.capacity = Int32.MaxValue;
            }
            else
            {
                LongHashMapEntry[] var4 = new LongHashMapEntry[par1];
                this.copyHashTableTo(var4);
                this.hashArray = var4;
                this.capacity = (int)((float)par1 * this.percentUseable);
            }
        }
Example #4
0
        /**
         * copies the hash table to the specified array
         */
        private void copyHashTableTo(LongHashMapEntry[] par1ArrayOfLongHashMapEntry)
        {
            LongHashMapEntry[] var2 = this.hashArray;
            int var3 = par1ArrayOfLongHashMapEntry.Length;

            for (int var4 = 0; var4 < var2.Length; ++var4)
            {
                LongHashMapEntry var5 = var2[var4];

                if (var5 != null)
                {
                    var2[var4] = null;
                    LongHashMapEntry var6;

                    do
                    {
                        var6 = var5.nextEntry;
                        int var7 = getHashIndex(var5.hash, var3);
                        var5.nextEntry = par1ArrayOfLongHashMapEntry[var7];
                        par1ArrayOfLongHashMapEntry[var7] = var5;
                        var5 = var6;
                    }
                    while (var6 != null);
                }
            }
        }