Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newLinkedHashSetWithExpectedSize (0.16 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MultimapBuilder.java

          this.expectedValuesPerKey = checkNonnegative(expectedValuesPerKey, "expectedValuesPerKey");
        }
    
        @Override
        public Set<V> get() {
          return Platform.newLinkedHashSetWithExpectedSize(expectedValuesPerKey);
        }
      }
    
      private static final class TreeSetSupplier<V extends @Nullable Object>
          implements Supplier<SortedSet<V>>, Serializable {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top