Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for computeIfPresent (0.08 sec)

  1. guava/src/com/google/common/collect/Synchronized.java

        @SuppressWarnings("nullness") // TODO: b/423853632 - Remove after checker is fixed.
        @Override
        public @Nullable V computeIfPresent(
            K key, BiFunction<? super K, ? super @NonNull V, ? extends @Nullable V> remappingFunction) {
          synchronized (mutex) {
            return delegate().computeIfPresent(key, remappingFunction);
          }
        }
    
        @Override
        public @Nullable V compute(
            K key,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Aug 08 15:11:10 UTC 2025
    - 56.9K bytes
    - Viewed (0)
  2. 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)
Back to top