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 int
compareTo(Object o)
boolean
equals(Object obj)
String
getKey()
long
getTime()
Date
getTimestamp()
Object
getValue()
void
setKey(String key)
void
setTimestamp(Date timestamp)
void
setValue(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:
compareTo
in interfaceComparable
-
setTimestamp
public void setTimestamp(Date timestamp)
-
-