Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for Resize (0.2 sec)

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

      private static final int ENDPOINT = -2;
    
      /**
       * Contains the link pointers corresponding with the entries, in the range of [0, size()). The
       * high 32 bits of each long is the "prev" pointer, whereas the low 32 bits is the "succ" pointer
       * (pointing to the next entry in the linked list). The pointers in [size(), entries.length) are
       * all "null" (UNSET).
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompactLinkedHashSet.java

      // entry in a *single* long[], though that reduces the maximum size of the set by a factor of 2
    
      /**
       * Pointer to the predecessor of an entry in insertion order. ENDPOINT indicates a node is the
       * first node in insertion order; all values at indices ≥ {@link #size()} are UNSET.
       */
      @CheckForNull private transient int[] predecessor;
    
      /**
    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)
  3. android/guava/src/com/google/common/collect/CompactHashSet.java

          newDelegate.addAll(delegate);
          this.table = newDelegate;
          return;
        }
        int size = this.size;
        if (size < requireEntries().length) {
          resizeEntries(size);
        }
        int minimumTableSize = CompactHashing.tableSize(size);
        int mask = hashTableMask();
        if (minimumTableSize < mask) { // smaller table size will always be less than current mask
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

      // entry in a *single* long[], though that reduces the maximum size of the set by a factor of 2
    
      /**
       * Pointer to the predecessor of an entry in insertion order. ENDPOINT indicates a node is the
       * first node in insertion order; all values at indices ≥ {@link #size()} are UNSET.
       */
      @CheckForNull private transient int[] predecessor;
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashMap.java

        int size = this.size;
        if (size < requireEntries().length) {
          resizeEntries(size);
        }
        int minimumTableSize = CompactHashing.tableSize(size);
        int mask = hashTableMask();
        if (minimumTableSize < mask) { // smaller table size will always be less than current mask
          resizeTable(mask, minimumTableSize, UNSET, UNSET);
        }
      }
    
      @Override
      public void clear() {
        if (needsAllocArrays()) {
    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)
  6. android/guava/src/com/google/common/collect/Lists.java

          return forwardList;
        }
    
        private int reverseIndex(int index) {
          int size = size();
          checkElementIndex(index, size);
          return (size - 1) - index;
        }
    
        private int reversePosition(int index) {
          int size = size();
          checkPositionIndex(index, size);
          return size - index;
        }
    
        @Override
        public void add(int index, @ParametricNullness T element) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        if (newEntryIndex == Integer.MAX_VALUE) {
          throw new IllegalStateException("Cannot contain more than Integer.MAX_VALUE elements!");
        }
        int newSize = newEntryIndex + 1;
        resizeMeMaybe(newSize);
        insertEntry(newEntryIndex, key, value, hash);
        this.size = newSize;
        if (newEntryIndex >= threshold) {
          resizeTable(2 * table.length);
        }
        modCount++;
        return 0;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/HashBiMap.java

        }
    
        ensureCapacity(size + 1);
        keys[size] = key;
        values[size] = value;
    
        insertIntoTableKToV(size, keyHash);
        insertIntoTableVToK(size, valueHash);
    
        setSucceeds(lastInInsertionOrder, size);
        setSucceeds(size, ENDPOINT);
        size++;
        modCount++;
        return null;
      }
    
      @Override
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      }
    
      public void testBuilder_presize_zero() {
        ImmutableDoubleArray.Builder builder = ImmutableDoubleArray.builder(0);
        builder.add(5.0);
        ImmutableDoubleArray array = builder.build();
        assertThat(array.asList()).containsExactly(5.0);
      }
    
      public void testBuilder_presize_negative() {
        try {
          ImmutableDoubleArray.builder(-1);
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

            .containsExactly(0L, 1L, 3L)
            .inOrder();
      }
    
      public void testBuilder_presize_zero() {
        ImmutableLongArray.Builder builder = ImmutableLongArray.builder(0);
        builder.add(5L);
        ImmutableLongArray array = builder.build();
        assertThat(array.asList()).containsExactly(5L);
      }
    
      public void testBuilder_presize_negative() {
        try {
          ImmutableLongArray.builder(-1);
          fail();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
Back to top