Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for incrementBy (0.06 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

        }
    
        @Override
        public CacheStats stats() {
          SimpleStatsCounter aggregator = new SimpleStatsCounter();
          aggregator.incrementBy(localCache.globalStatsCounter);
          for (Segment<K, V> segment : localCache.segments) {
            aggregator.incrementBy(segment.statsCounter);
          }
          return aggregator.snapshot();
        }
    
        @Override
        public void cleanUp() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 19:35:11 UTC 2025
    - 148.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        entry.setValueReference(valueRef);
    
        // absent
        assertThat(segment.removeLoadingValue(key, hash, valueRef)).isFalse();
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertThat(segment.removeLoadingValue(key, hash, valueRef)).isTrue();
        // no notification sent with removeLoadingValue
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 115.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        entry.setValueReference(valueRef);
    
        // absent
        assertThat(segment.removeLoadingValue(key, hash, valueRef)).isFalse();
    
        // live
        table.set(0, entry);
        // don't increment count; this is used during computation
        assertThat(segment.removeLoadingValue(key, hash, valueRef)).isTrue();
        // no notification sent with removeLoadingValue
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 117.5K bytes
    - Viewed (0)
Back to top