/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
|
D | ConcurrentHashMap.java | 1804 …public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) { in computeIfPresent() method in ConcurrentHashMap
|
/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/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/ojluni/src/main/java/java/util/ |
D | Collections.java | 1586 public V computeIfPresent(K key, 2726 public V computeIfPresent(K key, 2728 synchronized (mutex) {return m.computeIfPresent(key, remappingFunction);} 3752 public V computeIfPresent(K key, 3754 return m.computeIfPresent(key, typeCheck(remappingFunction)); 4690 public V computeIfPresent(K key, 5002 public V computeIfPresent(K key,
|
D | Map.java | 1071 default V computeIfPresent(K key, in computeIfPresent() method
|
D | ImmutableCollections.java | 730 …@Override public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> rf) { throw…
|
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/test/java/util/concurrent/tck/ |
D | ConcurrentHashMap8Test.java | 120 map.computeIfPresent(six, (x, y) -> "Z"); in testComputeIfPresent() 129 assertEquals("Z", map.computeIfPresent(one, (x, y) -> "Z")); in testComputeIfPresent2()
|
/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 | Collections.java | 841 public V computeIfPresent( in computeIfPresent() method in Collections.CheckedMap 1717 public V computeIfPresent( in computeIfPresent() method in Collections.EmptyMap 2097 public V computeIfPresent( in computeIfPresent() method in Collections.SingletonMap 2479 public V computeIfPresent( in computeIfPresent() method in Collections.SynchronizedMap 3138 public V computeIfPresent( in computeIfPresent() method in Collections.UnmodifiableMap
|
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 | 1137 provAndParam -> provAndParam.provider.computeIfPresent(
|
/libcore/api/ |
D | current.txt | 7745 …method public Object computeIfPresent(Object, java.util.function.BiFunction<? super java.lang.Obje… 13261 …method @Nullable public default V computeIfPresent(K, @NonNull java.util.function.BiFunction<? sup…
|