Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for newCapacity (0.19 sec)

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

       */
      void resizeEntries(int newCapacity) {
        this.entries = Arrays.copyOf(requireEntries(), newCapacity);
        this.elements = Arrays.copyOf(requireElements(), newCapacity);
      }
    
      @CanIgnoreReturnValue
      private int resizeTable(int oldMask, int newCapacity, int targetHash, int targetEntryIndex) {
        Object newTable = CompactHashing.createTable(newCapacity);
        int newMask = newCapacity - 1;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompactHashSet.java

       */
      void resizeEntries(int newCapacity) {
        this.entries = Arrays.copyOf(requireEntries(), newCapacity);
        this.elements = Arrays.copyOf(requireElements(), newCapacity);
      }
    
      @CanIgnoreReturnValue
      private int resizeTable(int oldMask, int newCapacity, int targetHash, int targetEntryIndex) {
        Object newTable = CompactHashing.createTable(newCapacity);
        int newMask = newCapacity - 1;
    
    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)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

          }
          // careful of overflow!
          int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
          if (newCapacity < minCapacity) {
            newCapacity = Integer.highestOneBit(minCapacity - 1) << 1;
          }
          if (newCapacity < 0) {
            newCapacity = Integer.MAX_VALUE;
            // guaranteed to be >= newCapacity
          }
          return newCapacity;
        }
    
        @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactHashMap.java

       * the current capacity.
       */
      void resizeEntries(int newCapacity) {
        this.entries = Arrays.copyOf(requireEntries(), newCapacity);
        this.keys = Arrays.copyOf(requireKeys(), newCapacity);
        this.values = Arrays.copyOf(requireValues(), newCapacity);
      }
    
      @CanIgnoreReturnValue
      private int resizeTable(int oldMask, int newCapacity, int targetHash, int targetEntryIndex) {
    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)
  5. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

       */
      void resizeEntries(int newCapacity) {
        this.keys = Arrays.copyOf(keys, newCapacity);
        this.values = Arrays.copyOf(values, newCapacity);
        long[] entries = this.entries;
        int oldCapacity = entries.length;
        entries = Arrays.copyOf(entries, newCapacity);
        if (newCapacity > oldCapacity) {
          Arrays.fill(entries, oldCapacity, newCapacity, UNSET);
        }
        this.entries = entries;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactLinkedHashMap.java

          setSucceeds(dstIndex, getSuccessor(srcIndex));
        }
        setLink(srcIndex, 0);
      }
    
      @Override
      void resizeEntries(int newCapacity) {
        super.resizeEntries(newCapacity);
        links = Arrays.copyOf(requireLinks(), newCapacity);
      }
    
      @Override
      int firstEntryIndex() {
        return firstEntry;
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

        requirePredecessors()[srcIndex] = 0;
        requireSuccessors()[srcIndex] = 0;
      }
    
      @Override
      void resizeEntries(int newCapacity) {
        super.resizeEntries(newCapacity);
        predecessor = Arrays.copyOf(requirePredecessors(), newCapacity);
        successor = Arrays.copyOf(requireSuccessors(), newCapacity);
      }
    
      @Override
      int firstEntryIndex() {
        return firstEntry;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

        }
        super.moveLastEntry(dstIndex);
      }
    
      @Override
      void resizeEntries(int newCapacity) {
        super.resizeEntries(newCapacity);
        int oldCapacity = links.length;
        links = Arrays.copyOf(links, newCapacity);
        Arrays.fill(links, oldCapacity, newCapacity, UNSET);
      }
    
      @Override
      public void clear() {
        super.clear();
        this.firstEntry = ENDPOINT;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 5.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

          }
          // careful of overflow!
          int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
          if (newCapacity < minCapacity) {
            newCapacity = Integer.highestOneBit(minCapacity - 1) << 1;
          }
          if (newCapacity < 0) {
            newCapacity = Integer.MAX_VALUE; // guaranteed to be >= newCapacity
          }
          return newCapacity;
        }
    
        /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactLinkedHashSet.java

        requirePredecessors()[srcIndex] = 0;
        requireSuccessors()[srcIndex] = 0;
      }
    
      @Override
      void resizeEntries(int newCapacity) {
        super.resizeEntries(newCapacity);
        predecessor = Arrays.copyOf(requirePredecessors(), newCapacity);
        successor = Arrays.copyOf(requireSuccessors(), newCapacity);
      }
    
      @Override
      int firstEntryIndex() {
        return firstEntry;
      }
    
      @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.7K bytes
    - Viewed (0)
Back to top