/libcore/luni/src/test/java/libcore/java/util/ |
MapDefaultMethodTester.java | 303 assertEquals(5.0, m.computeIfAbsent(1, (k) -> 5.0 * k)); 308 assertEquals(1.0, m.computeIfAbsent(1, k -> 6.0 * k)); 313 assertEquals(1.0, m.computeIfAbsent(1, k -> null)); 317 assertNull(m.computeIfAbsent(100, k-> null)); 321 m.computeIfAbsent(1, null); 328 assertEquals(1.0, m.computeIfAbsent(1, k -> 1.0)); 334 assertEquals(1.0, m.computeIfAbsent(null, (k) -> 5.0 * k)); 337 m.computeIfAbsent(null, k -> 5.0);
|
CollectionsTest.java | 567 Collections.unmodifiableMap(new HashMap<>()).computeIfAbsent(1, k -> 1.0); 576 Collections.unmodifiableMap(m).computeIfAbsent(1, k -> 1.0); [all...] |
LinkedHashMapTest.java | 148 m.computeIfAbsent("key1", (k) -> "value3"); 157 m.computeIfAbsent("key4", (k) -> "value3");
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
ConcurrentMap.java | 327 default V computeIfAbsent(K key,
|
ConcurrentSkipListMap.java | [all...] |
ConcurrentHashMap.java | 140 * {@link #computeIfAbsent computeIfAbsent}. For example, to add a count 142 * {@code freqs.computeIfAbsent(key, k -> new LongAdder()).increment();} 285 * placeholders while establishing values in computeIfAbsent and [all...] |
/libcore/ojluni/src/main/java/java/util/ |
Map.java | [all...] |
Collections.java | [all...] |
Hashtable.java | [all...] |
HashMap.java | [all...] |
/libcore/ojluni/src/main/java/java/util/stream/ |
Collectors.java | [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
ConcurrentHashMap8Test.java | 66 * computeIfAbsent adds when the given key is not present 70 map.computeIfAbsent(six, (x) -> "Z"); 75 * computeIfAbsent does not replace if the key is already present 79 assertEquals("A", map.computeIfAbsent(one, (x) -> "Z")); 83 * computeIfAbsent does not add if function returns null 87 map.computeIfAbsent(six, (x) -> null); [all...] |
/libcore/ojluni/src/main/java/java/security/ |
Provider.java | 540 public synchronized Object computeIfAbsent(Object key, Function<? super Object, ? extends Object> mappingFunction) { 545 debug.println("ComputeIfAbsent " + name + " provider property " + 814 // legacyStrings.computeIfAbsent((String) key, 830 legacyStrings.computeIfAbsent((String) key, 833 return super.computeIfAbsent(key, mappingFunction); [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeContext.java | 739 defaultPropMap = mDefaultPropMaps.computeIfAbsent(key, k -> new PropertiesMap()); [all...] |
/frameworks/base/services/companion/java/com/android/server/companion/ |
CompanionDeviceManagerService.java | 540 return mUidToStorage.computeIfAbsent(uid, (u) ->
|
/packages/services/Car/service/src/com/android/car/ |
CarDiagnosticService.java | 178 List<CarDiagnosticEvent> clientEvents = eventsByClient.computeIfAbsent(client,
|
/libcore/luni/src/test/java/libcore/java/security/ |
ProviderTest.java | [all...] |
/prebuilts/sdk/24/ |
android.jar | |
/prebuilts/tools/common/m2/repository/io/netty/netty-common/4.1.0.CR3/ |
netty-common-4.1.0.CR3.jar | |
/prebuilts/tools/common/m2/repository/io/netty/netty-common/4.1.3.Final/ |
netty-common-4.1.3.Final.jar | |
/prebuilts/tools/common/m2/repository/io/netty/netty-common/4.1.6.Final/ |
netty-common-4.1.6.Final.jar | |
/prebuilts/tools/common/m2/repository/com/google/guava/guava/21.0/ |
guava-21.0.jar | |