Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testComputeIfPresent (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

        assertThat(c.asMap().compute("hash-1", (k, v) -> "c")).isEqualTo("c");
        assertThat(c.size()).isEqualTo(1);
        assertThat(c.asMap().computeIfAbsent("hash-2", k -> "")).isEqualTo("");
      }
    
      public void testComputeIfPresent() {
        cache.put(key, "1");
        // simultaneous update for same key, expect count successful updates
        doParallelCacheOp(
            count,
            n -> {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 7K bytes
    - Click Count (0)
Back to Top