jason.core.cache
Class BasicCacheObjectImpl
java.lang.Object
|
+--jason.core.cache.BasicCacheObjectImpl
- All Implemented Interfaces:
- CacheObject
- public class BasicCacheObjectImpl
- extends java.lang.Object
- implements CacheObject
Created Fri May 10 14:36:09 2002
Here a simple classe for storing an item in the
cache
Constructor Summary |
BasicCacheObjectImpl(java.lang.Object userObject)
Initialize this cache object with the valid user object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicCacheObjectImpl
public BasicCacheObjectImpl(java.lang.Object userObject)
- Initialize this cache object with the valid user object
setObject
public void setObject(java.lang.Object userObject)
- This is the user object
- Specified by:
setObject
in interface CacheObject
- Parameters:
userObject
- the user object
getObject
public java.lang.Object getObject()
- Specified by:
getObject
in interface CacheObject
- Returns:
- the user object
isExpired
public boolean isExpired()
- Specified by:
isExpired
in interface CacheObject
- Returns:
true
is the object need to be updated
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object