Package com.sun.appserv.util.cache
Class BaseCache.CacheItem
java.lang.Object
com.sun.appserv.util.cache.BaseCache.CacheItem
- Direct Known Subclasses:
LruCache.LruCacheItem
- Enclosing class:
BaseCache
default CacheItem class implementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintget the item's hashCodegetKey()get the item's keygetNext()get the item's next referenceintgetSize()getValue()get the item's valueprotected ObjectrefreshValue(Object value, int newSize) refresh the item's valuevoidsetNext(BaseCache.CacheItem next) set the item's next referencetoString()
-
Constructor Details
-
CacheItem
-
-
Method Details
-
getHashCode
public int getHashCode()get the item's hashCode -
getKey
get the item's key -
getNext
get the item's next reference -
setNext
set the item's next reference -
getValue
get the item's value -
getSize
public int getSize()- Returns:
- size of the entry in bytes a value of -1 indicates unknown size
-
refreshValue
refresh the item's value- Parameters:
value- value to be updatednewSize- of the field
-
toString
-