Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testToImmutableBiMap_exceptionOnDuplicateKey (0.27 sec)

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

                ImmutableBiMap.of("one", 1, "two", 2, "three", 3),
                mapEntry("one", 1),
                mapEntry("two", 2),
                mapEntry("three", 3));
      }
    
      public void testToImmutableBiMap_exceptionOnDuplicateKey() {
        Collector<Entry<String, Integer>, ?, ImmutableBiMap<String, Integer>> collector =
            toImmutableBiMap(Entry::getKey, Entry::getValue);
        assertThrows(
            IllegalArgumentException.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top