Class CachedObject
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.cache.CachedObject
-
- All Implemented Interfaces:
Comparable
public class CachedObject extends Object implements Comparable
Class the contains a cacheable object. These are what is stored in the cache and are comparable by their timestamps.Created by Jeff Gaynor
on Nov 11, 2010 at 1:02:39 PM
-
-
Constructor Summary
Constructors Constructor Description CachedObject()CachedObject(String key, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)booleanequals(Object obj)StringgetKey()longgetTime()DategetTimestamp()ObjectgetValue()voidsetKey(String key)voidsetTimestamp(Date timestamp)voidsetValue(Object value)
-
-
-
Method Detail
-
getValue
public Object getValue()
-
setValue
public void setValue(Object value)
-
setKey
public void setKey(String key)
-
getKey
public String getKey()
-
getTimestamp
public Date getTimestamp()
-
getTime
public long getTime()
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin interfaceComparable
-
setTimestamp
public void setTimestamp(Date timestamp)
-
-