Home
last modified time | relevance | path

Searched refs:mappingFunction (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/test/java/util/Map/
DInPlaceOpsCollisions.java184 Function<T, T> mappingFunction) { in testComputeIfAbsent() argument
188 T expectedVal = mappingFunction.apply(keys[0]); in testComputeIfAbsent()
193 retVal = map.computeIfAbsent(keys[i], mappingFunction); in testComputeIfAbsent()
242 BiFunction<T, T, T> mappingFunction) { in testComputeIfPresent() argument
247 T funcResult = mappingFunction.apply(keys[0], keys[0]); in testComputeIfPresent()
252 T retVal = map.computeIfPresent(keys[i], mappingFunction); in testComputeIfPresent()
303 BiFunction<IntKey, IntKey, IntKey> mappingFunction = (k, v) -> { in testComputeNonNull() local
312 IntKey retVal = map.compute(keys[i], mappingFunction); in testComputeNonNull()
343 BiFunction<Object, Object, Object> mappingFunction = (k, v) -> { in testComputeNull() local
355 Object retVal = map.compute(keys[i], mappingFunction); in testComputeNull()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentMap.java326 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
327 Objects.requireNonNull(mappingFunction); in computeIfAbsent()
330 && (newValue = mappingFunction.apply(key)) != null in computeIfAbsent()
DConcurrentSkipListMap.java1457 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1458 if (key == null || mappingFunction == null) in computeIfAbsent()
1462 (r = mappingFunction.apply(key)) != null) in computeIfAbsent()
DConcurrentHashMap.java1696 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1697 if (key == null || mappingFunction == null) in computeIfAbsent()
1713 if ((val = mappingFunction.apply(key)) != null) in computeIfAbsent()
1745 if ((val = mappingFunction.apply(key)) != null) { in computeIfAbsent()
1762 else if ((val = mappingFunction.apply(key)) != null) { in computeIfAbsent()
/libcore/ojluni/src/main/java/java/util/
DMap.java1041 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1042 Objects.requireNonNull(mappingFunction); in computeIfAbsent()
1046 if ((newValue = mappingFunction.apply(key)) != null) { in computeIfAbsent()
DHashtable.java1031 public synchronized V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1032 Objects.requireNonNull(mappingFunction); in computeIfAbsent()
1047 V newValue = mappingFunction.apply(key); in computeIfAbsent()
DCollections.java1629 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
2825 Function<? super K, ? extends V> mappingFunction) {
2826 synchronized (mutex) {return m.computeIfAbsent(key, mappingFunction);}
3873 Function<? super K, ? extends V> mappingFunction) {
3874 Objects.requireNonNull(mappingFunction);
3876 V value = mappingFunction.apply(k);
4846 Function<? super K, ? extends V> mappingFunction) {
5174 Function<? super K, ? extends V> mappingFunction) {
DHashMap.java1189 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1190 if (mappingFunction == null) in computeIfAbsent()
1221 V v = mappingFunction.apply(key); in computeIfAbsent()
/libcore/ojluni/src/main/java/java/security/
DProvider.java544 …ed Object computeIfAbsent(Object key, Function<? super Object, ? extends Object> mappingFunction) { in computeIfAbsent() argument
552 return implComputeIfAbsent(key, mappingFunction); in computeIfAbsent()
833 …bject implComputeIfAbsent(Object key, Function<? super Object, ? extends Object> mappingFunction) { in implComputeIfAbsent() argument
839 (Function<? super String, ? extends String>) mappingFunction); in implComputeIfAbsent()
841 return super.computeIfAbsent(key, mappingFunction); in implComputeIfAbsent()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DHashMap.annotated.java75 …libcore.util.NullFromTypeParam K,? extends @libcore.util.Nullable V> mappingFunction) { throw new … in computeIfAbsent() argument
DMap.annotated.java76 …libcore.util.NullFromTypeParam K,? extends @libcore.util.Nullable V> mappingFunction) { throw new … in computeIfAbsent() argument
/libcore/ojluni/annotations/mmodule/java/security/
DProvider.annotated.java77 ….Object key, java.util.function.Function<? super java.lang.Object,?> mappingFunction) { throw new … in computeIfAbsent() argument
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java837 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1713 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
2093 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
2475 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
3134 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
DHashMap.java164 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/
DConcurrentHashMap.annotated.java108 …<? super @libcore.util.NonNull K,? extends @libcore.util.Nullable V> mappingFunction) { throw new … in computeIfAbsent() argument