public static interface Cache.Entry<K,V>
Modifier and Type | Method and Description |
---|---|
K |
getKey()
Returns the key corresponding to this entry.
|
V |
getValue()
Returns the value stored in the cache when this entry was created.
|
<T> T |
unwrap(Class<T> clazz)
Provides a standard way to access the underlying concrete cache entry
implementation in order to provide access to further, proprietary features.
|
K getKey()
V getValue()
<T> T unwrap(Class<T> clazz)
If the provider's implementation does not support the specified class,
the IllegalArgumentException
is thrown.
clazz
- the proprietary class or interface of the underlying
concrete cache. It is this type that is returned.IllegalArgumentException
- if the caching provider doesn't support
the specified class.Copyright © 2014. All Rights Reserved.