org.wso2.carbon.caching.impl
Class CacheEntry<K,V>

java.lang.Object
  extended by 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
CacheEntry(K key, V value)
           
 
Method Summary
 boolean equals(Object o)
           
 K getKey()
          Returns the key corresponding to this entry.
 long getLastAccessed()
           
 long getLastModified()
           
 V getValue()
          Returns the value stored in the cache when this entry was created.
 int hashCode()
           
 void setLastAccessed(Long lastAccessed)
           
 void setValue(V value)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEntry

public CacheEntry(K key,
                  V value)
Method Detail

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.