Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for storeLoadedValue (0.42 seconds)

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

              throw new InvalidCacheLoadException("CacheLoader returned null for key " + key + ".");
            }
            statsCounter.recordLoadSuccess(loadingValueReference.elapsedNanos());
            storeLoadedValue(key, hash, loadingValueReference, value);
            return value;
          } finally {
            if (value == null) {
              statsCounter.recordLoadException(loadingValueReference.elapsedNanos());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertThat(segment.get(key, hash)).isNull();
        assertThat(segment.storeLoadedValue(key, hash, valueRef, value)).isTrue();
        assertThat(segment.get(key, hash)).isSameInstanceAs(value);
        assertThat(segment.count).isEqualTo(1);
        assertThat(listener.isEmpty()).isTrue();
    
        // clobbered
        Object value2 = new Object();
        assertThat(segment.storeLoadedValue(key, hash, valueRef, value2)).isFalse();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        assertThat(segment.get(key, hash)).isNull();
        assertThat(segment.storeLoadedValue(key, hash, valueRef, value)).isTrue();
        assertThat(segment.get(key, hash)).isSameInstanceAs(value);
        assertThat(segment.count).isEqualTo(1);
        assertThat(listener.isEmpty()).isTrue();
    
        // clobbered
        Object value2 = new Object();
        assertThat(segment.storeLoadedValue(key, hash, valueRef, value2)).isFalse();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  4. guava/src/com/google/common/cache/LocalCache.java

              throw new InvalidCacheLoadException("CacheLoader returned null for key " + key + ".");
            }
            statsCounter.recordLoadSuccess(loadingValueReference.elapsedNanos());
            storeLoadedValue(key, hash, loadingValueReference, value);
            return value;
          } finally {
            if (value == null) {
              statsCounter.recordLoadException(loadingValueReference.elapsedNanos());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
Back to Top