Searched refs:checkedMap (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/ |
D | CollectionsTest.java | 1483 Map checkedMap = Collections.checkedMap(map, Integer.class, Integer.class); in test_CheckedMap_replaceAll() local 1484 checkedMap.put(1, 10); in test_CheckedMap_replaceAll() 1485 checkedMap.put(2, 20); in test_CheckedMap_replaceAll() 1486 checkedMap.put(3, 30); in test_CheckedMap_replaceAll() 1487 checkedMap.replaceAll((k, v) -> (Integer)k + (Integer)v); in test_CheckedMap_replaceAll() 1488 assertEquals(11, checkedMap.get(1)); in test_CheckedMap_replaceAll() 1489 assertEquals(22, checkedMap.get(2)); in test_CheckedMap_replaceAll() 1490 assertEquals(33, checkedMap.get(3)); in test_CheckedMap_replaceAll() 1491 assertEquals(3, checkedMap.size()); in test_CheckedMap_replaceAll() 1496 Map checkedMap = Collections.checkedMap(map, Integer.class, Double.class); in test_CheckedMap_putIfAbsent() local [all …]
|
D | OldCollectionsTest.java | 667 assertSerialized(Collections.checkedMap( in test_checkedMapSerializationCompatibility() 779 Map m = Collections.checkedMap(hm, Integer.class, String.class); in test_checkedMapLjava_util_MapLjava_lang_ClassLjava_lang_Class()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertificateRevokedException.java | 98 this.extensions = Collections.checkedMap(new HashMap<>(), in CertificateRevokedException()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Collections2Test.java | 447 c = Collections.checkedMap(c, String.class, String.class); in test_checkedMapSerializationCompatability() 541 testMapForEach(Collections.checkedMap(map, String.class, String.class)); in test_Map_forEach()
|
D | TreeMapExtendTest.java | 3422 Map checkedMap = Collections.checkedMap(treeMap, Integer.class, in test_Entry_setValue() local 3424 Set entrySet = checkedMap.entrySet(); in test_Entry_setValue()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Collections.annotated.java | 118 …<@libcore.util.NullFromTypeParam K, @libcore.util.NullFromTypeParam V> checkedMap(@libcore.util.No… in checkedMap() method in Collections
|