org.ehcache.jcache
Class JCacheEntry<K,V>

java.lang.Object
  extended by org.ehcache.jcache.JCacheEntry<K,V>
Type Parameters:
K - the type of keys used by this JCacheEntry
V - 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

Constructor Summary
JCacheEntry(net.sf.ehcache.Element e, Class<K> keyType, Class<V> valueType)
           
 
Method Summary
 K getKey()
           
 V getValue()
           
<T> T
unwrap(Class<T> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCacheEntry

public JCacheEntry(net.sf.ehcache.Element e,
                   Class<K> keyType,
                   Class<V> valueType)
Method Detail

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.