Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for closedTableSize (0.1 sec)

  1. guava/src/com/google/common/collect/RegularImmutableMap.java

         * of non-null entries.
         */
        @SuppressWarnings("nullness")
        Entry<K, V>[] entries =
            (n == entryArray.length) ? (Entry<K, V>[]) entryArray : createEntryArray(n);
        int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);
        @Nullable ImmutableMapEntry<K, V>[] table = createEntryArray(tableSize);
        int mask = tableSize - 1;
        // If duplicates are allowed, this IdentityHashMap will record the final Entry for each
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RegularImmutableBiMap.java

      }
    
      static <K, V> ImmutableBiMap<K, V> fromEntryArray(int n, @Nullable Entry<K, V>[] entryArray) {
        checkPositionIndex(n, entryArray.length);
        int tableSize = Hashing.closedTableSize(n, MAX_LOAD_FACTOR);
        int mask = tableSize - 1;
        @Nullable ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize);
        @Nullable ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize);
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

        init(expectedSize);
      }
    
      @SuppressWarnings("unchecked")
      void init(int expectedSize) {
        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);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 36.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        Preconditions.checkArgument(expectedSize >= 0, "Initial capacity must be non-negative");
        Preconditions.checkArgument(loadFactor > 0, "Illegal load factor");
        int buckets = Hashing.closedTableSize(expectedSize, loadFactor);
        this.table = newTable(buckets);
        this.loadFactor = loadFactor;
    
        this.keys = new @Nullable Object[expectedSize];
        this.values = new int[expectedSize];
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/HashBiMap.java

      private HashBiMap(int expectedSize) {
        init(expectedSize);
      }
    
      private void init(int expectedSize) {
        checkNonnegative(expectedSize, "expectedSize");
        int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR);
        this.hashTableKToV = createTable(tableSize);
        this.hashTableVToK = createTable(tableSize);
        this.firstInKeyInsertionOrder = null;
        this.lastInKeyInsertionOrder = null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/LinkedHashMultimap.java

          this.key = key;
          this.firstEntry = this;
          this.lastEntry = this;
          // 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;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top