Package org.wso2.carbon.caching.impl
Class CacheEntry<K,V>
- java.lang.Object
-
- org.wso2.carbon.caching.impl.CacheEntry<K,V>
-
- All Implemented Interfaces:
Serializable,Cache.Entry<K,V>
public class CacheEntry<K,V> extends Object implements Cache.Entry<K,V>, Serializable
TODO: class description- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheEntry(K key, V value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)KgetKey()Returns the key corresponding to this entry.longgetLastAccessed()longgetLastModified()VgetValue()Returns the value stored in the cache when this entry was created.inthashCode()voidsetLastAccessed(Long lastAccessed)voidsetValue(V value)
-
-
-
Method Detail
-
getKey
public K getKey()
Description copied from interface:Cache.EntryReturns the key corresponding to this entry.- Specified by:
getKeyin interfaceCache.Entry<K,V>- Returns:
- the key corresponding to this entry
-
setValue
public void setValue(V value)
-
getValue
public V getValue()
Description copied from interface:Cache.EntryReturns the value stored in the cache when this entry was created.- Specified by:
getValuein interfaceCache.Entry<K,V>- Returns:
- the value corresponding to this entry
-
getLastAccessed
public long getLastAccessed()
-
getLastModified
public long getLastModified()
-
setLastAccessed
public void setLastAccessed(Long lastAccessed)
-
-