- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CacheEntry (0.12 sec)
-
guava/src/com/google/common/graph/MapRetrievalCache.java
} private void addToCache(K key, V value) { addToCache(new CacheEntry<K, V>(key, value)); } private void addToCache(CacheEntry<K, V> entry) { // Slide new entry into first cache position. Drop previous entry in second cache position. cacheEntry2 = cacheEntry1; cacheEntry1 = entry; } private static final class CacheEntry<K, V> { final K key; final V value;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MapRetrievalCache.java
} private void addToCache(K key, V value) { addToCache(new CacheEntry<K, V>(key, value)); } private void addToCache(CacheEntry<K, V> entry) { // Slide new entry into first cache position. Drop previous entry in second cache position. cacheEntry2 = cacheEntry1; cacheEntry1 = entry; } private static final class CacheEntry<K, V> { final K key; final V value;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/graph/MapIteratorCache.java
V getIfCached(@CheckForNull Object key) { Entry<K, V> entry = cacheEntry; // store local reference for thread-safety // Check cache. We use == on purpose because it's cheaper and a cache miss is ok. if (entry != null && entry.getKey() == key) { return entry.getValue(); } return null; } void clearCache() { cacheEntry = null; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 06 00:47:57 UTC 2021 - 4.7K bytes - Viewed (0)