|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cassinidivision.core.foundation.CassiniExpiringDictionary
A dictionary/hashtable wrapper class that expires its contents over time.
Constructor Summary | |
CassiniExpiringDictionary(int someDays,
int someHours,
int someMinutes)
Creates a blank dictionary with the contents are set to expire according to the time details provided. |
Method Summary | |
void |
expireNow()
Expire all objects in the dictionary immediately. |
Object |
objectForKey(String aKey)
Return the object identified by the key provided (if the object has not yet expired). |
void |
setObjectForKey(Object anObject,
String aKey)
Associate an object with a key value in the dictionary. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CassiniExpiringDictionary(int someDays, int someHours, int someMinutes)
someDays
- Expire content this number of days into the future.someHours
- Expire content this number of hours into the future.someMinutes
- Expire content this number of minutes into the future.Method Detail |
public Object objectForKey(String aKey)
aKey
- The key in question.
public void setObjectForKey(Object anObject, String aKey)
anObject
- The object in question.aKey
- The key in question.public void expireNow()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |