Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for tableSize (0.17 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        Builder<Integer> builder = ImmutableSet.builder();
        for (int i = 0; i < inputSize; i++) {
          builder.add(i % setSize);
        }
        ImmutableSet<Integer> set = builder.build();
        assertTrue(set instanceof RegularImmutableSet);
        assertEquals(
            "Input size " + inputSize + " and set size " + setSize,
            tableSize,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashMap.java

      @Nullable Map<K, V> delegateOrNull() {
        if (table instanceof Map) {
          return (Map<K, V>) table;
        }
        return null;
      }
    
      Map<K, V> createHashFloodingResistantDelegate(int tableSize) {
        return new LinkedHashMap<>(tableSize, 1.0f);
      }
    
      @CanIgnoreReturnValue
      Map<K, V> convertToHashFloodingResistantImplementation() {
        Map<K, V> newDelegate = createHashFloodingResistantDelegate(hashTableMask() + 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

        CollectPreconditions.checkNonnegative(expectedSize, "expectedSize");
        int tableSize = Hashing.closedTableSize(expectedSize, 1.0);
        size = 0;
    
        keys = (K[]) new Object[expectedSize];
        values = (V[]) new Object[expectedSize];
    
        hashTableKToV = createFilledWithAbsent(tableSize);
        hashTableVToK = createFilledWithAbsent(tableSize);
        nextInBucketKToV = createFilledWithAbsent(expectedSize);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

          this.key = key;
          // Round expected values up to a power of 2 to get the table size.
          int tableSize = Hashing.closedTableSize(expectedValues, VALUE_SET_LOAD_FACTOR);
    
          @SuppressWarnings({"rawtypes", "unchecked"})
          @Nullable ValueEntry<K, V>[] hashTable = new @Nullable ValueEntry[tableSize];
          this.hashTable = hashTable;
        }
    
        private void succeedsInValueSet(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
Back to top