- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for CompactHashSet (0.08 sec)
-
android/guava/src/com/google/common/collect/CompactHashSet.java
/** Constructs a new empty instance of {@code CompactHashSet}. */ CompactHashSet() { init(CompactHashing.DEFAULT_SIZE); } /** * Constructs a new instance of {@code CompactHashSet} with the specified capacity. * * @param expectedSize the initial capacity of this {@code CompactHashSet}. */ CompactHashSet(int expectedSize) { init(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/CompactHashSetTest.java
return set; } }) .named("CompactHashSet#TrimToSize") .withFeatures(allFeatures) .createTestSuite()); return suite; } public void testAllocArraysDefault() { CompactHashSet<Integer> set = CompactHashSet.create(); assertThat(set.needsAllocArrays()).isTrue(); assertThat(set.elements).isNull(); set.add(1);
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-tests/test/com/google/common/collect/CompactHashSetFloodingTest.java
@GwtIncompatible @NullUnmarked public class CompactHashSetFloodingTest extends AbstractHashFloodingTest<Set<Object>> { public CompactHashSetFloodingTest() { super( ImmutableList.of(Construction.setFromElements(CompactHashSet::create)), n -> n * log(n), ImmutableList.of(QueryOp.SET_CONTAINS)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Platform.java
} /** Returns the platform preferred implementation of a set based on a hash table. */ static <E extends @Nullable Object> Set<E> newHashSetWithExpectedSize(int expectedSize) { return CompactHashSet.createWithExpectedSize(expectedSize); } /** * Returns the platform preferred implementation of an insertion ordered set based on a hash * table. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/Platform.java
* Returns the platform preferred set implementation that preserves insertion order when used only * for insertions. */ static <E extends @Nullable Object> Set<E> preservesInsertionOrderOnAddsSet() { return CompactHashSet.create(); } /** * Returns a new array of the given length with the same type as a reference array. * * @param reference any array of the desired type * @param length the length of the new array
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashSet.java
* when there is a specific reason to prioritize memory over CPU. * * @author Louis Wasserman */ @GwtIncompatible // not worth using in GWT for now final class CompactLinkedHashSet<E extends @Nullable Object> extends CompactHashSet<E> { /** Creates an empty {@code CompactLinkedHashSet} instance. */ public static <E extends @Nullable Object> CompactLinkedHashSet<E> create() { return new CompactLinkedHashSet<>(); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 14:59:07 UTC 2025 - 9.4K bytes - Viewed (0)