Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        assertThrows(
            IllegalArgumentException.class,
            () -> Stream.of(mapEntry(AnEnum.A, 1), mapEntry(AnEnum.A, 11)).collect(collector));
      }
    
      public void testToImmutableMapMerging() {
        Collector<Entry<AnEnum, Integer>, ?, ImmutableMap<AnEnum, Integer>> collector =
            toImmutableEnumMap(Entry::getKey, Entry::getValue, Integer::sum);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top