- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for createEntryArray (0.15 sec)
-
guava/src/com/google/common/collect/RegularImmutableBiMap.java
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); /* * The cast is safe: n==entryArray.length means that we have filled the whole array with Entry
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 11.2K bytes - Viewed (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 = 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 16.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMapEntry.java
* {@code new ImmutableMapEntry[...]}, so it seems silly to insist on that only here. */ @SuppressWarnings("unchecked") // Safe as long as the javadocs are followed static <K, V> ImmutableMapEntry<K, V>[] createEntryArray(int size) { return (ImmutableMapEntry<K, V>[]) new ImmutableMapEntry<?, ?>[size]; } ImmutableMapEntry(K key, V value) { super(key, value); checkEntryNotNull(key, value); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 4.4K bytes - Viewed (0)