Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newLinkedHashSetWithExpectedSize (0.14 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/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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top