com.jcorporate.expresso.core.cache
Class CachedObject
java.lang.Object
com.jcorporate.expresso.core.cache.CachedObject
- All Implemented Interfaces:
- Cacheable, Serializable
- public class CachedObject
- extends Object
- implements Cacheable, Serializable
- See Also:
- Serialized Form
|
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 |
CachedObject
public CachedObject(String newKey,
Serializable newObject)
- Creates a new cached object
- Parameters:
newKey - - The key with which to Cache this objectnewObject - - The serializable object to insert into the cache
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
Please see www.jcorporate.com for information about new Expresso releases.