Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testToImmutableMap_exceptionOnDuplicateKey (0.41 sec)

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

                ImmutableMap.of(AnEnum.A, 1, AnEnum.C, 2, AnEnum.E, 3),
                mapEntry(AnEnum.A, 1),
                mapEntry(AnEnum.C, 2),
                mapEntry(AnEnum.E, 3));
      }
    
      public void testToImmutableMap_exceptionOnDuplicateKey() {
        Collector<Entry<AnEnum, Integer>, ?, ImmutableMap<AnEnum, Integer>> collector =
            Maps.toImmutableEnumMap(Entry::getKey, Entry::getValue);
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        assertMapEquals(zis.combine(zat).build(), "one", 1, "two", 2, "three", 3);
      }
    
      // TODO(b/172823566): Use mainline testToImmutableMap once CollectorTester is usable to java7.
      public void testToImmutableMap_exceptionOnDuplicateKey_java7_combine() {
        ImmutableMap.Builder<String, Integer> zis =
            ImmutableMap.<String, Integer>builder().put("one", 1).put("two", 2);
        ImmutableMap.Builder<String, Integer> zat =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                ImmutableMap.of("one", 1, "two", 2, "three", 3),
                mapEntry("one", 1),
                mapEntry("two", 2),
                mapEntry("three", 3));
      }
    
      public void testToImmutableMap_exceptionOnDuplicateKey() {
        Collector<Entry<String, Integer>, ?, ImmutableMap<String, Integer>> collector =
            ImmutableMap.toImmutableMap(Entry::getKey, Entry::getValue);
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
Back to top