Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testUniqueIndexDuplicates (0.1 seconds)

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

        assertEquals(INT_TO_STRING_MAP, outputMap);
      }
    
      /** Can't create the map if more than one value maps to the same key. */
      public void testUniqueIndexDuplicates() {
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
                () -> Maps.uniqueIndex(ImmutableSet.of("one", "uno"), Functions.constant(1)));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
Back to Top