/libcore/luni/src/test/java/libcore/java/util/ |
D | MapDefaultMethodTester.java | 345 assertNull(m.computeIfPresent(1, (k, v) -> 5.0 * k + v)); in test_computeIfPresent() 349 assertEquals(11.0, m.computeIfPresent(1, (k, v) -> 6.0 * k + v)); in test_computeIfPresent() 353 assertNull(m.computeIfPresent(1, (k, v) -> null)); in test_computeIfPresent() 358 m.computeIfPresent(1, null); in test_computeIfPresent() 364 assertEquals(1.0, m.computeIfPresent(null, (k, v) -> v)); in test_computeIfPresent() 367 m.computeIfPresent(null, (k, v) -> 5.0); in test_computeIfPresent()
|
D | CollectionsTest.java | 558 Collections.unmodifiableMap(new HashMap<>()).computeIfPresent(1, (k, v) -> 1.0); in test_unmodifiableMap_computeIfPresent() 567 Collections.unmodifiableMap(m).computeIfPresent(1, (k, v) -> 1.0); in test_unmodifiableMap_computeIfPresent() 925 assertThrowsUoe(() -> { map.computeIfPresent(absentKey, (k, v) -> absentValue); }); in check_unmodifiableOrderedMap_defaultMethods() 937 assertThrowsUoe(() -> { map.computeIfPresent(sampleKey, (k, v) -> absentValue); }); in check_unmodifiableOrderedMap_defaultMethods() 1038 assertThrowsCce(() -> { map.computeIfPresent(new Object(), (k, v) -> presentValue); }); in check_map_isChecked() 1039 assertThrowsCce(() -> { map.computeIfPresent(presentKey, (k, v) -> new Object()); }); in check_map_isChecked() 1041 assertNull(map.computeIfPresent(absentKey, (k, v) -> new Object())); in check_map_isChecked() 1258 Collections.emptyMap().computeIfPresent(1, (k, v) -> 5.0); in test_EmptyMap_computeIfPresent() 1335 Collections.singletonMap(1, 11.0).computeIfPresent(1, (k, v) -> 5.0); in test_SingletonMap_computeIfPresent() 1591 checkedMap2.computeIfPresent(1, (k, v) -> NOT_A_STRING); in test_CheckedMap_computeIfPresent()
|
D | LinkedHashMapTest.java | 174 m.computeIfPresent("key1", (k, v) -> "value3"); in test_computeIfPresent()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentMap.java | 369 default V computeIfPresent(K key, in computeIfPresent() method
|
D | ConcurrentSkipListMap.java | 1695 public V computeIfPresent(K key, in computeIfPresent() method in ConcurrentSkipListMap
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | HashMap.annotated.java | 77 @libcore.util.Nullable public V computeIfPresent(@libcore.util.NullFromTypeParam K key, @libcore.ut… in computeIfPresent() method in HashMap
|
D | Map.annotated.java | 78 @libcore.util.Nullable public default V computeIfPresent(@libcore.util.NullFromTypeParam K key, @li… in computeIfPresent() method
|
/libcore/ojluni/annotations/mmodule/java/security/ |
D | Provider.annotated.java | 79 public synchronized java.lang.Object computeIfPresent(java.lang.Object key, java.util.function.BiFu… in computeIfPresent() method in Provider
|
/libcore/ojluni/src/main/java/java/util/ |
D | Map.java | 1043 default V computeIfPresent(K key, in computeIfPresent() method
|
D | Hashtable.java | 1025 …public synchronized V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remapp… in computeIfPresent() method in Hashtable
|
D | HashMap.java | 1150 public V computeIfPresent(K key, in computeIfPresent() method in HashMap
|
/libcore/ojluni/src/main/java/java/security/ |
D | Provider.java | 573 …public synchronized Object computeIfPresent(Object key, BiFunction<? super Object, ? super Object,… in computeIfPresent() method in Provider 849 legacyStrings.computeIfPresent((String) key, in implComputeIfPresent() 852 return super.computeIfPresent(key, remappingFunction); in implComputeIfPresent()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMap8Test.java | 96 map.computeIfPresent(six, (x, y) -> "Z"); in testComputeIfPresent() 105 assertEquals("Z", map.computeIfPresent(one, (x, y) -> "Z")); in testComputeIfPresent2()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | HashMap.java | 168 public V computeIfPresent( in computeIfPresent() method in HashMap
|
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/ |
D | ConcurrentHashMap.annotated.java | 110 …@libcore.util.Nullable public V computeIfPresent(@libcore.util.NonNull K key, @libcore.util.NonNul… in computeIfPresent() method in ConcurrentHashMap
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | ProviderTest.java | 1124 provAndParam -> provAndParam.provider.computeIfPresent(
|