Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testReusedBuilder (0.08 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        RegularImmutableSet<String> set = (RegularImmutableSet<String>) builder.build();
        assertTrue(set.elements.length <= 2 * set.size());
      }
    
      @GwtIncompatible("internals")
      public void testReusedBuilder() {
        ImmutableSet.Builder<String> builder = new ImmutableSet.Builder<String>();
        for (int i = 0; i < 10; i++) {
          builder.add("foo");
        }
        builder.add("bar");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

      }
    
      public void testAsList() {
        ImmutableList<String> list = ImmutableList.of("a", "b");
        assertSame(list, list.asList());
      }
    
      @GwtIncompatible("builder internals")
      public void testReusedBuilder() {
        ImmutableList.Builder<String> builder = new ImmutableList.Builder<String>();
        for (int i = 0; i < 10; i++) {
          builder.add("foo");
        }
        builder.add("bar");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
Back to top