|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.datastructure.MruList.MruEntry
Represent an entry in the MruList
Constructor Summary | |
MruList.MruEntry(java.lang.Object obj,
long time)
Constructor |
Method Summary | |
int |
compareTo(MruList.MruEntry e)
Compare by the access time |
int |
compareTo(java.lang.Object o)
|
long |
getLastAccessTime()
Return the lastAccessTime |
java.lang.Object |
getObj()
Return the obj |
void |
setLastAccessTime(long lastAccessTime)
Set the lastAccessTime |
void |
setObj(java.lang.Object obj)
Set the obj |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MruList.MruEntry(java.lang.Object obj, long time)
obj
- the objecttime
- the timeMethod Detail |
public int compareTo(MruList.MruEntry e)
e
- another entry
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public final long getLastAccessTime()
public final void setLastAccessTime(long lastAccessTime)
lastAccessTime
- The lastAccessTime to set.public final java.lang.Object getObj()
public final void setObj(java.lang.Object obj)
obj
- The obj to set.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |