Home | History | Annotate | Download | only in util

Lines Matching refs:CachedValue

43  *     CachedValue<Contact> cachedContact = mContactCache.getCachedValue(phoneNumber);
96 public interface CachedValue<V> {
112 private static class GenerationalCachedValue<V> implements ExpirableCache.CachedValue<V> {
143 private LruCache<K, CachedValue<V>> mCache;
151 * @see ExpirableCache.CachedValue#isExpired()
155 private ExpirableCache(LruCache<K, CachedValue<V>> cache) {
173 public CachedValue<V> getCachedValue(K key) {
183 * within the {@link CachedValue} and not call {@link #getPossiblyExpired(Object)} to get the
190 CachedValue<V> cachedValue = getCachedValue(key);
191 return cachedValue == null ? null : cachedValue.getValue();
205 CachedValue<V> cachedValue = getCachedValue(key);
206 return cachedValue == null || cachedValue.isExpired() ? null : cachedValue.getValue();
233 * Creates a new {@link CachedValue} instance to be stored in this cache.
237 public CachedValue<V> newCachedValue(V value) {
252 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) {
264 return create(new LruCache<K, CachedValue<V>>(maxSize));