Home
last modified time | relevance | path

Searched refs:computeIfPresent (Results 1 – 20 of 20) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/
DMapDefaultMethodTester.java345 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()
DCollectionsTest.java558 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()
DLinkedHashMapTest.java174 m.computeIfPresent("key1", (k, v) -> "value3"); in test_computeIfPresent()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentMap.java369 default V computeIfPresent(K key, in computeIfPresent() method
DConcurrentSkipListMap.java1695 public V computeIfPresent(K key, in computeIfPresent() method in ConcurrentSkipListMap
DConcurrentHashMap.java1804 …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/
DHashMap.annotated.java77 @libcore.util.Nullable public V computeIfPresent(@libcore.util.NullFromTypeParam K key, @libcore.ut… in computeIfPresent() method in HashMap
DMap.annotated.java78 @libcore.util.Nullable public default V computeIfPresent(@libcore.util.NullFromTypeParam K key, @li… in computeIfPresent() method
/libcore/ojluni/annotations/mmodule/java/security/
DProvider.annotated.java79 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/
DProvider.java573 …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/
DMap.java1071 default V computeIfPresent(K key, in computeIfPresent() method
DCollections.java1586 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,
DImmutableCollections.java555 …@Override public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> rf) { throw…
DHashtable.java1025 …public synchronized V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remapp… in computeIfPresent() method in Hashtable
DHashMap.java1150 public V computeIfPresent(K key, in computeIfPresent() method in HashMap
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMap8Test.java96 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/
DCollections.java841 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
DHashMap.java168 public V computeIfPresent( in computeIfPresent() method in HashMap
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/
DConcurrentHashMap.annotated.java110 …@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/
DProviderTest.java1121 provAndParam -> provAndParam.provider.computeIfPresent(