- Sort Score
- Num 10 results
- Language All
Results 11 - 19 of 19 for getIfPresent (0.08 seconds)
-
guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java
return newValue; } catch (Exception e) { throw new ExecutionException(e); } } @Override public @Nullable V getIfPresent(Object key) { return localCache.getIfPresent(key); } @Override public void put(K key, V value) { localCache.put(key, value); } @Override public void invalidate(Object key) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 21.8K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheStats.java
* as a result of a refresh or if the cache loader returned more items than was requested. {@code * missCount} may also be incremented not in conjunction with this (nor {@link * #loadExceptionCount}) on calls to {@code getIfPresent}. */ public long loadSuccessCount() { return loadSuccessCount; } /** * Returns the number of times {@link Cache} lookup methods threw an exception while loading a newCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 12.6K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheStats.java
* as a result of a refresh or if the cache loader returned more items than was requested. {@code * missCount} may also be incremented not in conjunction with this (nor {@link * #loadExceptionCount}) on calls to {@code getIfPresent}. */ public long loadSuccessCount() { return loadSuccessCount; } /** * Returns the number of times {@link Cache} lookup methods threw an exception while loading a newCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 12.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
cache.invalidate(1); assertThat(cache.size()).isEqualTo(0); entry.setValue(3); assertThat(cache.size()).isEqualTo(1); assertThat(cache.getIfPresent(1)).isEqualTo(3); checkValidState(cache); assertThrows(NullPointerException.class, () -> entry.setValue(null)); checkValidState(cache); } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 15.7K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/Cache.java
* cached value for {@code key}. * * @since 11.0 */ @CanIgnoreReturnValue // TODO(b/27479612): consider removing this? @Nullable V getIfPresent(@CompatibleWith("K") Object key); /** * Returns the value associated with {@code key} in this cache, obtaining that value from {@codeCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 8.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
cache.invalidate(1); assertThat(cache.size()).isEqualTo(0); entry.setValue(3); assertThat(cache.size()).isEqualTo(1); assertThat(cache.getIfPresent(1)).isEqualTo(3); checkValidState(cache); assertThrows(NullPointerException.class, () -> entry.setValue(null)); checkValidState(cache); } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 15.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertThat(cache.getIfPresent(key)).isSameInstanceAs(one); stats = cache.stats(); assertThat(stats.missCount()).isEqualTo(1); assertThat(stats.loadSuccessCount()).isEqualTo(1); assertThat(stats.loadExceptionCount()).isEqualTo(0); assertThat(stats.hitCount()).isEqualTo(1); ticker.advance(1, MILLISECONDS); assertThat(cache.getIfPresent(key)).isSameInstanceAs(two);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 91.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertThat(cache.getIfPresent(key)).isSameInstanceAs(one); stats = cache.stats(); assertThat(stats.missCount()).isEqualTo(1); assertThat(stats.loadSuccessCount()).isEqualTo(1); assertThat(stats.loadExceptionCount()).isEqualTo(0); assertThat(stats.hitCount()).isEqualTo(1); ticker.advance(1, MILLISECONDS); assertThat(cache.getIfPresent(key)).isSameInstanceAs(two);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 91.1K bytes - Click Count (0) -
guava/src/com/google/common/cache/LocalCache.java
private LocalManualCache(LocalCache<K, V> localCache) { this.localCache = localCache; } // Cache methods @Override public @Nullable V getIfPresent(Object key) { return localCache.getIfPresent(key); } @Override public V get(K key, Callable<? extends V> valueLoader) throws ExecutionException { checkNotNull(valueLoader); return localCache.get(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 11 19:35:11 GMT 2025 - 148.9K bytes - Click Count (0)