|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.cache.CacheEntry<K,T>
K - Key type.T - The object cache type.public class CacheEntry<K,T>
A cache entry.
| Constructor Summary | |
|---|---|
CacheEntry(K key,
T value)
Basic constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(CacheEntry<K,T> o)
|
boolean |
equals(Object obj)
|
K |
getKey()
Get the cache key. |
T |
getValue()
Get the value. |
int |
hashCode()
|
boolean |
invalid(long timeout)
Based on timeout, says if an element must be removed from cache. |
void |
renew()
Renew cache item timestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheEntry(K key,
T value)
key - The key.value - The value.| Method Detail |
|---|
public K getKey()
public T getValue()
public void renew()
public boolean invalid(long timeout)
timeout - The timeout.
public int compareTo(CacheEntry<K,T> o)
compareTo in interface Comparable<CacheEntry<K,T>>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||