Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testBuilderAdd (0.08 sec)

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

      }
    
      public void testCopyOf_shortcut_immutableMultiset() {
        Collection<String> c = ImmutableMultiset.of("a", "b", "c");
        assertSame(c, ImmutableMultiset.copyOf(c));
      }
    
      public void testBuilderAdd() {
        ImmutableMultiset<String> multiset =
            new ImmutableMultiset.Builder<String>().add("a").add("b").add("a").add("c").build();
        assertEquals(HashMultiset.create(asList("a", "b", "a", "c")), multiset);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

            .containsExactly(
                Multisets.immutableEntry("a", 2),
                Multisets.immutableEntry("b", 1),
                Multisets.immutableEntry("c", 1))
            .inOrder();
      }
    
      public void testBuilderAdd() {
        ImmutableSortedMultiset<String> multiset =
            ImmutableSortedMultiset.<String>naturalOrder().add("a").add("b").add("a").add("c").build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      }
    
      public void testCopyOf_shortcut_immutableMultiset() {
        Collection<String> c = ImmutableMultiset.of("a", "b", "c");
        assertSame(c, ImmutableMultiset.copyOf(c));
      }
    
      public void testBuilderAdd() {
        ImmutableMultiset<String> multiset =
            new ImmutableMultiset.Builder<String>().add("a").add("b").add("a").add("c").build();
        assertEquals(HashMultiset.create(asList("a", "b", "a", "c")), multiset);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        assertFalse(c.equals(ImmutableList.of("a", "c", "b")));
        assertFalse(c.equals(ImmutableList.of("a", "b")));
        assertFalse(c.equals(ImmutableList.of("a", "b", "c", "d")));
      }
    
      public void testBuilderAdd() {
        ImmutableList<String> list =
            new ImmutableList.Builder<String>().add("a").add("b").add("a").add("c").build();
        assertEquals(asList("a", "b", "a", "c"), list);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        assertFalse(c.equals(ImmutableList.of("a", "c", "b")));
        assertFalse(c.equals(ImmutableList.of("a", "b")));
        assertFalse(c.equals(ImmutableList.of("a", "b", "c", "d")));
      }
    
      public void testBuilderAdd() {
        ImmutableList<String> list =
            new ImmutableList.Builder<String>().add("a").add("b").add("a").add("c").build();
        assertEquals(asList("a", "b", "a", "c"), list);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top