org.tinygroup.jspengine.appserv.util.cache
类 BaseCache.CacheItem

java.lang.Object
  继承者 org.tinygroup.jspengine.appserv.util.cache.BaseCache.CacheItem
直接已知子类:
LruCache.LruCacheItem
包容类:
BaseCache

protected static class BaseCache.CacheItem
extends Object

default CacheItem class implementation


构造方法摘要
protected BaseCache.CacheItem(int hashCode, Object key, Object value, int size)
           
 
方法摘要
protected  int getHashCode()
          get the item's hashCode
protected  Object getKey()
          get the item's key
protected  int getSize()
           
protected  Object getValue()
          get the item's value
protected  Object refreshValue(Object value, int newSize)
          refresh the item's value
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

BaseCache.CacheItem

protected BaseCache.CacheItem(int hashCode,
                              Object key,
                              Object value,
                              int size)
方法详细信息

getHashCode

protected int getHashCode()
get the item's hashCode


getKey

protected Object getKey()
get the item's key


getValue

protected Object getValue()
get the item's value


getSize

protected int getSize()
返回:
size of the entry in bytes a value of -1 indicates unknown size

refreshValue

protected Object refreshValue(Object value,
                              int newSize)
refresh the item's value

参数:
value - value to be updated
newSize - of the field

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2006–2014 开源组织. All rights reserved.