org.ehcache.jcache
Class JCacheEntry<K,V>
java.lang.Object
org.ehcache.jcache.JCacheEntry<K,V>
- Type Parameters:
K - the type of keys used by this JCacheEntryV - the type of values that are loaded by this JCacheEntry
- All Implemented Interfaces:
- javax.cache.Cache.Entry<K,V>
public class JCacheEntry<K,V>
- extends Object
- implements javax.cache.Cache.Entry<K,V>
An implementation of CacheEntry.
A CacheEntry is metadata about an entry in the cache. It does not include the value.
- Since:
- 1.4.0-beta1
- Author:
- Greg Luck, Ryan Gardner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCacheEntry
public JCacheEntry(net.sf.ehcache.Element e,
Class<K> keyType,
Class<V> valueType)
getKey
public K getKey()
- Specified by:
getKey in interface javax.cache.Cache.Entry<K,V>
getValue
public V getValue()
- Specified by:
getValue in interface javax.cache.Cache.Entry<K,V>
unwrap
public <T> T unwrap(Class<T> clazz)
- Specified by:
unwrap in interface javax.cache.Cache.Entry<K,V>
Copyright © 2014 Terracotta. All Rights Reserved.