Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for newLinkedHashSetWithExpectedSize (0.12 sec)

  1. guava/src/com/google/common/collect/Platform.java

      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered set based on a hash
       * table.
       */
      static <E extends @Nullable Object> Set<E> newLinkedHashSetWithExpectedSize(int expectedSize) {
        return Sets.newLinkedHashSetWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred map implementation that preserves insertion order when used only
       * for insertions.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Platform.java

      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered set based on a hash
       * table.
       */
      static <E extends @Nullable Object> Set<E> newLinkedHashSetWithExpectedSize(int expectedSize) {
        return CompactLinkedHashSet.createWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred map implementation that preserves insertion order when used only
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

       *
       * @return a new {@code LinkedHashSet} containing a collection of values for one key
       */
      @Override
      Set<V> createCollection() {
        return Platform.newLinkedHashSetWithExpectedSize(valueSetCapacity);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>Creates a decorated insertion-ordered set that also keeps track of the order in which
       * key-value pairs are added to the multimap.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      public void testNewLinkedHashSetWithExpectedSizeSmall() {
        LinkedHashSet<Integer> set = Sets.newLinkedHashSetWithExpectedSize(0);
        verifySetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewLinkedHashSetWithExpectedSizeLarge() {
        LinkedHashSet<Integer> set = Sets.newLinkedHashSetWithExpectedSize(1000);
        verifySetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewTreeSetEmpty() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Sets.java

       * @since 11.0
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> LinkedHashSet<E> newLinkedHashSetWithExpectedSize(
          int expectedSize) {
        return new LinkedHashSet<>(Maps.capacity(expectedSize));
      }
    
      // TreeSet
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
Back to top