|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.caches.LUFOCache.LocalKey
This class enable to store the original key and the number of occurences when the associated value was recovered from the cache.
| Constructor Summary | |
LUFOCache.LocalKey(java.lang.Object key)
Builds a new local key. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
This method enables to compare the LocalKey objects to order them. |
boolean |
equals(java.lang.Object o)
This method compares an object to this key. |
java.lang.Object |
getKey()
Gives access to the original key. |
long |
getNumberOfUses()
Access to the current number of calls to retrieve the object associated to this key. |
int |
hashCode()
This method ensures that we can access in a Hashtable using either the original key or the LocalKey associated. |
long |
incr()
This method enables to increment the number of retrievals. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LUFOCache.LocalKey(java.lang.Object key)
key - the actual key in the Cache.| Method Detail |
public long incr()
public long getNumberOfUses()
public java.lang.Object getKey()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the LocalKey to compare.
public int hashCode()
public boolean equals(java.lang.Object o)
o - the object to test for equality.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||