Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for chooseTableSize (0.05 sec)

  1. android/guava/src/com/google/common/base/SmallCharMatcher.java

       * with linear probing in its implementation. The returned size is the smallest power of two that
       * can hold setSize elements with the desired load factor.
       */
      @VisibleForTesting
      static int chooseTableSize(int setSize) {
        if (setSize == 1) {
          return 2;
        }
        // Correct the size for open addressing to match desired load factor.
        // Round up to the next highest power of 2.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableBiMap.java

        this.alternatingKeysAndValues = alternatingKeysAndValues;
        this.size = size;
        this.keyOffset = 0;
        int tableSize = (size >= 2) ? ImmutableSet.chooseTableSize(size) : 0;
        this.keyHashTable = createHashTableOrThrow(alternatingKeysAndValues, size, tableSize, 0);
        Object valueHashTable = createHashTableOrThrow(alternatingKeysAndValues, size, tableSize, 1);
        this.inverse =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top