- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for needsAllocArrays (1.08 sec)
-
android/guava-tests/test/com/google/common/collect/CompactHashSetTest.java
return suite; } public void testAllocArraysDefault() { CompactHashSet<Integer> set = CompactHashSet.create(); assertThat(set.needsAllocArrays()).isTrue(); assertThat(set.elements).isNull(); set.add(1); assertThat(set.needsAllocArrays()).isFalse(); assertThat(set.elements).hasLength(CompactHashing.DEFAULT_SIZE); } public void testAllocArraysExpectedSize() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 16:19:30 UTC 2025 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashMap.java
} /** Returns whether arrays need to be allocated. */ boolean needsAllocArrays() { return table == null; } /** Handle lazy allocation of arrays. */ @CanIgnoreReturnValue int allocArrays() { Preconditions.checkState(needsAllocArrays(), "Arrays already allocated"); int expectedSize = metadata; int buckets = CompactHashing.tableSize(expectedSize);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 39.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashSet.java
} /** Returns whether arrays need to be allocated. */ boolean needsAllocArrays() { return table == null; } /** Handle lazy allocation of arrays. */ @CanIgnoreReturnValue int allocArrays() { Preconditions.checkState(needsAllocArrays(), "Arrays already allocated"); int expectedSize = metadata; int buckets = CompactHashing.tableSize(expectedSize);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 23.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
CompactLinkedHashMap<Integer, String> map = CompactLinkedHashMap.create(); assertThat(map.needsAllocArrays()).isTrue(); assertThat(map.entries).isNull(); assertThat(map.keys).isNull(); assertThat(map.values).isNull(); assertThat(map.links).isNull(); map.put(1, Integer.toString(1)); assertThat(map.needsAllocArrays()).isFalse(); assertThat(map.entries).hasLength(CompactHashing.DEFAULT_SIZE);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 6.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CompactHashMapTest.java
CompactHashMap<Integer, String> map = CompactHashMap.create(); assertThat(map.needsAllocArrays()).isTrue(); assertThat(map.entries).isNull(); assertThat(map.keys).isNull(); assertThat(map.values).isNull(); map.put(1, "1"); assertThat(map.needsAllocArrays()).isFalse(); assertThat(map.entries).hasLength(CompactHashing.DEFAULT_SIZE);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 25 16:19:30 UTC 2025 - 5.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
CompactLinkedHashMap<Integer, String> map = CompactLinkedHashMap.create(); assertThat(map.needsAllocArrays()).isTrue(); assertThat(map.entries).isNull(); assertThat(map.keys).isNull(); assertThat(map.values).isNull(); assertThat(map.links).isNull(); map.put(1, Integer.toString(1)); assertThat(map.needsAllocArrays()).isFalse(); assertThat(map.entries).hasLength(CompactHashing.DEFAULT_SIZE);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashMap.java
} /** Returns whether arrays need to be allocated. */ boolean needsAllocArrays() { return table == null; } /** Handle lazy allocation of arrays. */ @CanIgnoreReturnValue int allocArrays() { Preconditions.checkState(needsAllocArrays(), "Arrays already allocated"); int expectedSize = metadata; int buckets = CompactHashing.tableSize(expectedSize);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 35.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashSet.java
public <T extends @Nullable Object> T[] toArray(T[] a) { return ObjectArrays.toArrayImpl(this, a); } @Override public void clear() { if (needsAllocArrays()) { return; } this.firstEntry = ENDPOINT; this.lastEntry = ENDPOINT; // Either both arrays are null or neither is, but we check both to satisfy the nullness checker.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 14:59:07 UTC 2025 - 9.4K bytes - Viewed (0)