Lines Matching defs:key
97 /** Returns the value stored in the cache for a given key. */
161 * Returns the cached value for the given key, or null if no value exists.
163 * The cached value gives access both to the value associated with the key and whether it is
171 * @param key the key to look up
173 public CachedValue<V> getCachedValue(K key) {
174 return mCache.get(key);
178 * Returns the value for the given key, or null if no value exists.
187 * @param key the key to look up
189 public V getPossiblyExpired(K key) {
190 CachedValue<V> cachedValue = getCachedValue(key);
195 * Returns the value for the given key only if it is not expired, or null if no value exists or
198 * This method will return null if either there is no value associated with this key or if the
201 * @param key the key to look up
204 public V get(K key) {
205 CachedValue<V> cachedValue = getCachedValue(key);
214 * @param key the key to look up
215 * @param value the value to associate with the key
217 public void put(K key, V value) {
218 mCache.put(key, newCachedValue(value));