- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for putIfAbsent (0.04 seconds)
-
guava/src/com/google/common/collect/Synchronized.java
synchronized (mutex) { return delegate().put(key, value); } } @Override public @Nullable V putIfAbsent(K key, V value) { synchronized (mutex) { return delegate().putIfAbsent(key, value); } } @Override public boolean replace(K key, V oldValue, V newValue) { synchronized (mutex) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Aug 08 15:11:10 GMT 2025 - 56.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
assertThrows(UnsupportedOperationException.class, () -> unmod.replaceAll((k, v) -> v)); assertThrows(UnsupportedOperationException.class, () -> unmod.putIfAbsent(3, "three")); assertThrows(UnsupportedOperationException.class, () -> unmod.replace(3, "three", "four")); assertThrows(UnsupportedOperationException.class, () -> unmod.replace(3, "four")); assertThrows(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 22:56:33 GMT 2025 - 65K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MapMakerInternalMap.java
checkNotNull(key); checkNotNull(value); int hash = hash(key); return segmentFor(hash).put(key, hash, value, false); } @CanIgnoreReturnValue @Override public @Nullable V putIfAbsent(K key, V value) { checkNotNull(key); checkNotNull(value); int hash = hash(key); return segmentFor(hash).put(key, hash, value, true); } @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 89.9K bytes - Click Count (0)