Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

  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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 6.7K bytes
    - Click Count (0)
Back to Top