- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 21 for tableSize (0.05 seconds)
-
guava/src/com/google/common/collect/RegularImmutableMultiset.java
return new RegularImmutableMultiset<>(entryArray, EMPTY_ARRAY, 0, 0, ImmutableSet.of()); } int tableSize = closedTableSize(distinct, MAX_LOAD_FACTOR); int mask = tableSize - 1; @SuppressWarnings({"unchecked", "rawtypes"}) @Nullable ImmutableEntry<E>[] hashTable = new @Nullable ImmutableEntry[tableSize]; int index = 0; int hashCode = 0; long size = 0;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 6.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSet.java
if (setSize < CUTOFF) { // Round up to the next highest power of 2. int tableSize = Integer.highestOneBit(setSize - 1) << 1; while (tableSize * DESIRED_LOAD_FACTOR < setSize) { tableSize <<= 1; } return tableSize; } // The table can't be completely full or we'll get infinite reprobes
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Oct 11 14:54:00 GMT 2025 - 22.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableMap.java
* smallest possible to fit {@code tableSize}; or an {@code Object[]} where [0] is one of * these; [1] indicates how many element pairs in {@code alternatingKeysAndValues} are valid; * and [2] is a {@link Builder.DuplicateKey} for the first duplicate key encountered. */ private static @Nullable Object createHashTable( @Nullable Object[] alternatingKeysAndValues, int n, int tableSize, int keyOffset) { if (n == 1) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 22.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableBiMap.java
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 =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 4.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
checkPositionIndex(n, entryArray.length); int tableSize = closedTableSize(n, MAX_LOAD_FACTOR); int mask = tableSize - 1; @Nullable ImmutableMapEntry<K, V>[] keyTable = createEntryArray(tableSize); @Nullable ImmutableMapEntry<K, V>[] valueTable = createEntryArray(tableSize); /* * The cast is safe: n==entryArray.length means that we have filled the whole array with Entry
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 11.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
@SuppressWarnings("nullness") Entry<K, V>[] entries = (n == entryArray.length) ? (Entry<K, V>[]) entryArray : createEntryArray(n); int tableSize = 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 eachCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 15.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/HashBiMap.java
checkNonnegative(expectedSize, "expectedSize"); int tableSize = closedTableSize(expectedSize, LOAD_FACTOR); this.hashTableKToV = createTable(tableSize); this.hashTableVToK = createTable(tableSize); this.firstInKeyInsertionOrder = null; this.lastInKeyInsertionOrder = null; this.size = 0; this.mask = tableSize - 1; this.modCount = 0; } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 25.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSet.java
if (setSize < CUTOFF) { // Round up to the next highest power of 2. int tableSize = Integer.highestOneBit(setSize - 1) << 1; while (tableSize * DESIRED_LOAD_FACTOR < setSize) { tableSize <<= 1; } return tableSize; } // The table can't be completely full or we'll get infinite reprobes
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Nov 07 16:09:47 GMT 2025 - 35.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashMap.java
int expectedSize = super.allocArrays(); this.links = new long[expectedSize]; return expectedSize; } @Override Map<K, V> createHashFloodingResistantDelegate(int tableSize) { return new LinkedHashMap<>(tableSize, 1.0f, accessOrder); } @Override @CanIgnoreReturnValue Map<K, V> convertToHashFloodingResistantImplementation() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 14:59:07 GMT 2025 - 8.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/CompactLinkedHashMap.java
int expectedSize = super.allocArrays(); this.links = new long[expectedSize]; return expectedSize; } @Override Map<K, V> createHashFloodingResistantDelegate(int tableSize) { return new LinkedHashMap<>(tableSize, 1.0f, accessOrder); } @Override @CanIgnoreReturnValue Map<K, V> convertToHashFloodingResistantImplementation() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 10.2K bytes - Click Count (0)