Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for newTable (0.17 sec)

  1. android/guava/src/com/google/common/collect/CompactHashSet.java

            int newNext = CompactHashing.tableGet(newTable, newTableIndex);
            CompactHashing.tableSet(newTable, newTableIndex, oldNext);
            entries[entryIndex] = CompactHashing.maskCombine(hash, newNext, newMask);
    
            oldNext = CompactHashing.getNext(oldEntry, oldMask);
          }
        }
    
        this.table = newTable;
        setHashTableMask(newMask);
        return newMask;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        int newThreshold = 1 + (int) (newCapacity * loadFactor);
        int[] newTable = newTable(newCapacity);
        long[] entries = this.entries;
    
        int mask = newTable.length - 1;
        for (int i = 0; i < size; i++) {
          long oldEntry = entries[i];
          int hash = getHash(oldEntry);
          int tableIndex = hash & mask;
          int next = newTable[tableIndex];
          newTable[tableIndex] = i;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        }
    
        AtomicReferenceArray<E> newEntryArray(int size) {
          return new AtomicReferenceArray<>(size);
        }
    
        void initTable(AtomicReferenceArray<E> newTable) {
          this.threshold = newTable.length() * 3 / 4; // 0.75
          this.table = newTable;
        }
    
        // Convenience methods for testing
    
        /**
         * Unsafe cast of the given entry to {@code E}, the type of the specific {@link InternalEntry}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactHashMap.java

          // We need to rewrite the `next` link of each of the elements so that it is in the appropriate
          // linked list starting from `newTable`. In general, each element from the old linked list
          // belongs to a different linked list from `newTable`. We insert each element in turn at the
          // head of its appropriate `newTable` linked list.
          while (oldNext != UNSET) {
            int entryIndex = oldNext - 1;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

        }
    
        void initTable(AtomicReferenceArray<ReferenceEntry<K, V>> newTable) {
          this.threshold = newTable.length() * 3 / 4; // 0.75
          if (!map.customWeigher() && this.threshold == maxSegmentWeight) {
            // prevent spurious expansion before eviction
            this.threshold++;
          }
          this.table = newTable;
        }
    
        @GuardedBy("this")
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactHashMap.java

          // We need to rewrite the `next` link of each of the elements so that it is in the appropriate
          // linked list starting from `newTable`. In general, each element from the old linked list
          // belongs to a different linked list from `newTable`. We insert each element in turn at the
          // head of its appropriate `newTable` linked list.
          while (oldNext != UNSET) {
            int entryIndex = oldNext - 1;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LocalCache.java

        }
    
        void initTable(AtomicReferenceArray<ReferenceEntry<K, V>> newTable) {
          this.threshold = newTable.length() * 3 / 4; // 0.75
          if (!map.customWeigher() && this.threshold == maxSegmentWeight) {
            // prevent spurious expansion before eviction
            this.threshold++;
          }
          this.table = newTable;
        }
    
        @GuardedBy("this")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CompactHashSet.java

            int newNext = CompactHashing.tableGet(newTable, newTableIndex);
            CompactHashing.tableSet(newTable, newTableIndex, oldNext);
            entries[entryIndex] = CompactHashing.maskCombine(hash, newNext, newMask);
    
            oldNext = CompactHashing.getNext(oldEntry, oldMask);
          }
        }
    
        this.table = newTable;
        setHashTableMask(newMask);
        return newMask;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
Back to top