|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.util.cache.CachedObject
Creation timestamp: Feb 20, 2003 9:21:12 AM
| Field Summary |
| Fields inherited from interface org.nees.util.cache.Multisortable |
EQUAL_TO, GREATER_THAN, INCOMPARABLE, LESS_THAN |
| Constructor Summary | |
CachedObject(java.lang.Object key,
java.lang.Object cachedObject)
|
|
| Method Summary | |
int |
compareTo(int key,
CachedObject co)
|
int |
compareTo(int key,
Multisortable ms)
|
boolean |
equals(java.lang.Object obj)
|
long |
getByteSize()
|
java.util.Date |
getCreationTime()
Returns the creationTime. |
java.lang.Object |
getHashKey()
Returns the hashKey. |
java.util.Date |
getLastAccessedTime()
Returns the lastAccessedTime. |
int |
getNumberOfAccesses()
Returns the numberOfAccesses. |
java.lang.Object |
getObject()
Returns the object. |
int |
hashCode()
|
protected void |
setCreationTime(java.util.Date creationTime)
Sets the creationTime. |
protected void |
setHashKey(java.lang.Object hashKey)
Sets the hashKey. |
protected void |
setLastAccessedTime(java.util.Date lastAccessedTime)
Sets the lastAccessedTime. |
void |
setNumberOfAccesses(int numberOfAccesses)
Sets the numberOfAccesses. |
protected void |
setObject(java.lang.Object object)
Sets the object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CachedObject(java.lang.Object key,
java.lang.Object cachedObject)
| Method Detail |
public java.util.Date getCreationTime()
public boolean equals(java.lang.Object obj)
public java.lang.Object getHashKey()
public int hashCode()
public java.util.Date getLastAccessedTime()
public int compareTo(int key,
Multisortable ms)
compareTo in interface Multisortable
public int compareTo(int key,
CachedObject co)
public long getByteSize()
public java.lang.Object getObject()
protected void setCreationTime(java.util.Date creationTime)
creationTime - The creationTime to setprotected void setHashKey(java.lang.Object hashKey)
hashKey - The hashKey to setprotected void setLastAccessedTime(java.util.Date lastAccessedTime)
lastAccessedTime - The lastAccessedTime to setprotected void setObject(java.lang.Object object)
object - The object to setpublic java.lang.String toString()
public int getNumberOfAccesses()
public void setNumberOfAccesses(int numberOfAccesses)
numberOfAccesses - The numberOfAccesses to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||