Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for CompactHashSet (0.24 sec)

  1. 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);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. 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);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java

                .withFeatures(allFeatures)
                .createTestSuite());
        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();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 21:08:15 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/CompactHashSetTest.java

                      protected Set<String> create(String[] elements) {
                        CompactHashSet<String> set = CompactHashSet.create();
                        set.convertToHashFloodingResistantImplementation();
                        Collections.addAll(set, elements);
                        return set;
                      }
                    })
                .named("CompactHashSet with flooding protection")
                .withFeatures(allFeatures)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. 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();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/CompactLinkedHashSetTest.java

                .named("CompactLinkedHashSet")
                .withFeatures(allFeatures)
                .createTestSuite());
        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();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Oct 24 18:57:48 GMT 2019
    - 3.2K bytes
    - Viewed (0)
  7. 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.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/CompactHashSetFloodingTest.java

    @GwtIncompatible
    public class CompactHashSetFloodingTest extends AbstractHashFloodingTest<Set<Object>> {
      public CompactHashSetFloodingTest() {
        super(
            ImmutableList.of(Construction.setFromElements(CompactHashSet::create)),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.SET_CONTAINS));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

     *
     * @author Louis Wasserman
     */
    @GwtIncompatible // not worth using in GWT for now
    @ElementTypesAreNonnullByDefault
    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<>();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactLinkedHashSet.java

     *
     * @author Louis Wasserman
     */
    @GwtIncompatible // not worth using in GWT for now
    @ElementTypesAreNonnullByDefault
    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<>();
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.7K bytes
    - Viewed (0)
Back to top