OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:computeIfAbsent
(Results
1 - 9
of
9
) sorted by null
/libcore/luni/src/main/java/java/util/concurrent/
ConcurrentMap.java
298
default V
computeIfAbsent
(K key,
ConcurrentSkipListMap.java
[
all
...]
ConcurrentHashMap.java
111
* {@link #
computeIfAbsent
computeIfAbsent
}. For example, to add a count
113
* {@code freqs.
computeIfAbsent
(key, k -> new LongAdder()).increment();}
256
* placeholders while establishing values in
computeIfAbsent
and
[
all
...]
/libcore/ojluni/src/main/java/java/util/
Map.java
[
all
...]
Hashtable.java
[
all
...]
/libcore/luni/src/test/java/libcore/java/util/
MapDefaultMethodTester.java
222
assertEquals(5.0, m.
computeIfAbsent
(1, (k) -> 5.0 * k));
227
assertEquals(1.0, m.
computeIfAbsent
(1, k -> 6.0 * k));
232
assertEquals(1.0, m.
computeIfAbsent
(1, k -> null));
236
assertNull(m.
computeIfAbsent
(100, k-> null));
240
m.
computeIfAbsent
(1, null);
247
assertEquals(1.0, m.
computeIfAbsent
(1, k -> 1.0));
253
assertEquals(1.0, m.
computeIfAbsent
(null, (k) -> 5.0 * k));
256
m.
computeIfAbsent
(null, k -> 5.0);
/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
...]
/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
Completed in 588 milliseconds