Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testToImmutableMapMerging (0.11 sec)

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

        assertThrows(
            IllegalArgumentException.class,
            () -> Stream.of(mapEntry("one", 1), mapEntry("one", 11)).collect(collector));
      }
    
      public void testToImmutableMapMerging() {
        Collector<Entry<String, Integer>, ?, ImmutableMap<String, Integer>> collector =
            toImmutableMap(Entry::getKey, Entry::getValue, Integer::sum);
        Equivalence<ImmutableMap<String, Integer>> equivalence =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top