|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.util.cache.CacheItem<K,V>
K - V - public class CacheItem<K,V>
Cache item.
| Constructor Summary | |
|---|---|
CacheItem(K key,
V value)
Construct cache item from key and value |
|
CacheItem(K key,
V value,
Date lastAccess)
Construct cache item from key, value and time of last access. |
|
| Method Summary | |
|---|---|
K |
getKey()
Get item key. |
Date |
getLastAccess()
Get time of last access. |
V |
getValue()
Get item value. |
void |
setValue(V value)
Set item value. |
void |
touch()
Touch item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheItem(K key,
V value,
Date lastAccess)
key - the keyvalue - the valuelastAccess - time of last access
public CacheItem(K key,
V value)
key - the keyvalue - the value| Method Detail |
|---|
public V getValue()
public void setValue(V value)
value - The value to set.public K getKey()
public Date getLastAccess()
public void touch()
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||