Polishing (selectively backported from recent 4.0 commits)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,11 +39,15 @@ public interface Cache {
|
||||
Object getNativeCache();
|
||||
|
||||
/**
|
||||
* Return the value to which this cache maps the specified key. Returns
|
||||
* {@code null} if the cache contains no mapping for this key.
|
||||
* @param key key whose associated value is to be returned.
|
||||
* Return the value to which this cache maps the specified key.
|
||||
* <p>Returns {@code null} if the cache contains no mapping for this key;
|
||||
* otherwise, the cached value (which may be {@code null} itself) will
|
||||
* be returned in a {@link ValueWrapper}.
|
||||
* @param key the key whose associated value is to be returned
|
||||
* @return the value to which this cache maps the specified key,
|
||||
* or {@code null} if the cache contains no mapping for this key
|
||||
* contained within a {@link ValueWrapper} which may also hold
|
||||
* a cached {@code null} value. A straight {@code null} being
|
||||
* returned means that the cache contains no mapping for this key.
|
||||
*/
|
||||
ValueWrapper get(Object key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user