Expresso 5-5-0

com.jcorporate.expresso.core.cache
Class CachedObject

java.lang.Object
  extended bycom.jcorporate.expresso.core.cache.CachedObject
All Implemented Interfaces:
Cacheable, Serializable

public class CachedObject
extends Object
implements Cacheable, Serializable

See Also:
Serialized Form

Constructor Summary
CachedObject(String newKey, Serializable newObject)
          Creates a new cached object
 
Method Summary
 String getKey()
          Gets the unique key that separates the object in the cache
 Object getValue()
          Get the value of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedObject

public CachedObject(String newKey,
                    Serializable newObject)
Creates a new cached object

Parameters:
newKey - - The key with which to Cache this object
newObject - - The serializable object to insert into the cache
Method Detail

getKey

public String getKey()
Gets the unique key that separates the object in the cache

Specified by:
getKey in interface Cacheable
Returns:
the key of this object

getValue

public Object getValue()
Get the value of the object

Returns:
java.lang.Object

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.