Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/Map/
DInPlaceOpsCollisions.java187 Function<T, T> mappingFunction) { in testComputeIfAbsent() argument
191 T expectedVal = mappingFunction.apply(keys[0]); in testComputeIfAbsent()
196 retVal = map.computeIfAbsent(keys[i], mappingFunction); in testComputeIfAbsent()
245 BiFunction<T, T, T> mappingFunction) { in testComputeIfPresent() argument
250 T funcResult = mappingFunction.apply(keys[0], keys[0]); in testComputeIfPresent()
255 T retVal = map.computeIfPresent(keys[i], mappingFunction); in testComputeIfPresent()
306 BiFunction<IntKey, IntKey, IntKey> mappingFunction = (k, v) -> { in testComputeNonNull() local
315 IntKey retVal = map.compute(keys[i], mappingFunction); in testComputeNonNull()
346 BiFunction<Object, Object, Object> mappingFunction = (k, v) -> { in testComputeNull() local
358 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/test/java/util/Collections/
DDelegatingIteratorForEachRemaining.java145 …(K key, Function<? super K, ? extends V> mappingFunction) { return delegate.computeIfAbsent(key, m… in computeIfAbsent() argument
/libcore/ojluni/src/main/java/java/util/
DMap.java1049 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1050 Objects.requireNonNull(mappingFunction); in computeIfAbsent()
1054 if ((newValue = mappingFunction.apply(key)) != null) { in computeIfAbsent()
DTreeMap.java589 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
590 Objects.requireNonNull(mappingFunction); in computeIfAbsent()
594 newValue = callMappingFunctionWithCheck(key, mappingFunction); in computeIfAbsent()
616 t.value = callMappingFunctionWithCheck(key, mappingFunction); in computeIfAbsent()
634 t.value = callMappingFunctionWithCheck(key, mappingFunction); in computeIfAbsent()
640 newValue = callMappingFunctionWithCheck(key, mappingFunction); in computeIfAbsent()
782 … private V callMappingFunctionWithCheck(K key, Function<? super K, ? extends V> mappingFunction) { in callMappingFunctionWithCheck() argument
784 V newValue = mappingFunction.apply(key); in callMappingFunctionWithCheck()
1852 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1856 if (mappingFunction.apply(key) == null) return null; in computeIfAbsent()
[all …]
DHashtable.java1027 public synchronized V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1028 Objects.requireNonNull(mappingFunction); in computeIfAbsent()
1043 V newValue = mappingFunction.apply(key); in computeIfAbsent()
DProperties.java1476 Function<? super Object, ?> mappingFunction) { in computeIfAbsent() argument
1477 return map.computeIfAbsent(key, mappingFunction); in computeIfAbsent()
DLinkedHashMap.java1244 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1245 return base.computeIfAbsent(key, mappingFunction); in computeIfAbsent()
DCollections.java1781 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
3043 Function<? super K, ? extends V> mappingFunction) {
3044 synchronized (mutex) {return m.computeIfAbsent(key, mappingFunction);}
4091 Function<? super K, ? extends V> mappingFunction) {
4092 Objects.requireNonNull(mappingFunction);
4094 V value = mappingFunction.apply(k);
5064 Function<? super K, ? extends V> mappingFunction) {
5392 Function<? super K, ? extends V> mappingFunction) {
DHashMap.java1198 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
1199 if (mappingFunction == null) in computeIfAbsent()
1230 V v = mappingFunction.apply(key); in computeIfAbsent()
/libcore/ojluni/annotations/flagged_api/java/util/
DHashMap.annotated.java74 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() argument
DTreeMap.annotated.java67 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() argument
DProperties.annotated.java124 ….Object key, java.util.function.Function<? super java.lang.Object,?> mappingFunction) { throw new … in computeIfAbsent() argument
DMap.annotated.java74 …teIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction) { throw new … in computeIfAbsent() argument
/libcore/ojluni/src/main/java/java/security/
DProvider.java546 …ed Object computeIfAbsent(Object key, Function<? super Object, ? extends Object> mappingFunction) { in computeIfAbsent() argument
554 return implComputeIfAbsent(key, mappingFunction); in computeIfAbsent()
835 …bject implComputeIfAbsent(Object key, Function<? super Object, ? extends Object> mappingFunction) { in implComputeIfAbsent() argument
841 (Function<? super String, ? extends String>) mappingFunction); in implComputeIfAbsent()
843 return super.computeIfAbsent(key, mappingFunction); in implComputeIfAbsent()
/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/flagged_api/java/util/concurrent/
DConcurrentSkipListMap.annotated.java70 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() argument
/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/src/main/java/java/lang/
DSystem.java958 Function<? super Object, ?> mappingFunction) { in computeIfAbsent() argument
960 return super.computeIfAbsent(key, mappingFunction); in computeIfAbsent()
/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