- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for computeIfPresent (0.05 sec)
-
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
.build(); cache.put(1, 2); // explicitly remove the existing value cache.asMap().computeIfPresent(1, (key, value) -> null); assertThat(notifications).hasSize(1); CacheTesting.checkEmpty(cache); // ensure no zombie entry remains cache.asMap().computeIfPresent(1, (key, value) -> null); assertThat(notifications).hasSize(1); CacheTesting.checkEmpty(cache); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
assertThrows( UnsupportedOperationException.class, () -> unmod.computeIfAbsent(3, k -> k + "three")); assertThrows(UnsupportedOperationException.class, () -> unmod.computeIfPresent(4, (k, v) -> v)); assertThrows(UnsupportedOperationException.class, () -> unmod.compute(4, (k, v) -> v)); assertThrows(UnsupportedOperationException.class, () -> unmod.merge(4, "four", (k, v) -> v));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 65K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
K key, java.util.function.Function<? super K, ? extends V> mappingFunction) { throw new UnsupportedOperationException(); } @Override public @Nullable V computeIfPresent( K key, BiFunction<? super K, ? super @NonNull V, ? extends @Nullable V> remappingFunction) { throw new UnsupportedOperationException(); } @Override public @Nullable V compute(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 163.5K bytes - Viewed (0)