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
CacheEntry
public CacheEntry(K key,
V value)
getKey
public K getKey()
- Description copied from interface:
Cache.Entry
- Returns the key corresponding to this entry.
- Specified by:
getKey in interface Cache.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.Entry
- Returns the value stored in the cache when this entry was created.
- Specified by:
getValue in interface Cache.Entry<K,V>
- Returns:
- the value corresponding to this entry
getLastAccessed
public long getLastAccessed()
getLastModified
public long getLastModified()
setLastAccessed
public void setLastAccessed(Long lastAccessed)
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2014 WSO2 Inc. All rights reserved.