/libcore/ojluni/src/test/java/util/Map/ |
D | InPlaceOpsCollisions.java | 187 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/ |
D | ConcurrentMap.java | 326 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument 327 Objects.requireNonNull(mappingFunction); in computeIfAbsent() 330 && (newValue = mappingFunction.apply(key)) != null in computeIfAbsent()
|
D | ConcurrentSkipListMap.java | 1457 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()
|
D | ConcurrentHashMap.java | 1696 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/ |
D | DelegatingIteratorForEachRemaining.java | 145 …(K key, Function<? super K, ? extends V> mappingFunction) { return delegate.computeIfAbsent(key, m… in computeIfAbsent() argument
|
/libcore/ojluni/src/main/java/java/util/ |
D | Map.java | 1049 Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument 1050 Objects.requireNonNull(mappingFunction); in computeIfAbsent() 1054 if ((newValue = mappingFunction.apply(key)) != null) { in computeIfAbsent()
|
D | TreeMap.java | 589 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 …]
|
D | Hashtable.java | 1027 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()
|
D | Properties.java | 1476 Function<? super Object, ?> mappingFunction) { in computeIfAbsent() argument 1477 return map.computeIfAbsent(key, mappingFunction); in computeIfAbsent()
|
D | LinkedHashMap.java | 1244 public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument 1245 return base.computeIfAbsent(key, mappingFunction); in computeIfAbsent()
|
D | Collections.java | 1781 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) {
|
D | HashMap.java | 1198 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/ |
D | HashMap.annotated.java | 74 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() argument
|
D | TreeMap.annotated.java | 67 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() argument
|
D | Properties.annotated.java | 124 ….Object key, java.util.function.Function<? super java.lang.Object,?> mappingFunction) { throw new … in computeIfAbsent() argument
|
D | Map.annotated.java | 74 …teIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction) { throw new … in computeIfAbsent() argument
|
/libcore/ojluni/src/main/java/java/security/ |
D | Provider.java | 546 …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/ |
D | Provider.annotated.java | 77 ….Object key, java.util.function.Function<? super java.lang.Object,?> mappingFunction) { throw new … in computeIfAbsent() argument
|
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/ |
D | ConcurrentSkipListMap.annotated.java | 70 public V computeIfAbsent(K key, java.util.function.Function<? super K,? extends V> mappingFunction)… in computeIfAbsent() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | HashMap.annotated.java | 75 …libcore.util.NullFromTypeParam K,? extends @libcore.util.Nullable V> mappingFunction) { throw new … in computeIfAbsent() argument
|
D | Map.annotated.java | 76 …libcore.util.NullFromTypeParam K,? extends @libcore.util.Nullable V> mappingFunction) { throw new … in computeIfAbsent() argument
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 958 Function<? super Object, ?> mappingFunction) { in computeIfAbsent() argument 960 return super.computeIfAbsent(key, mappingFunction); in computeIfAbsent()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Collections.java | 837 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
|
D | HashMap.java | 164 K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { in computeIfAbsent() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/ |
D | ConcurrentHashMap.annotated.java | 108 …<? super @libcore.util.NonNull K,? extends @libcore.util.Nullable V> mappingFunction) { throw new … in computeIfAbsent() argument
|