public static class BaseCache.CacheItem extends Object
Modifier | Constructor and Description |
---|---|
protected |
CacheItem(int hashCode,
Object key,
Object value,
int size) |
Modifier and Type | Method and Description |
---|---|
int |
getHashCode()
get the item's hashCode
|
Object |
getKey()
get the item's key
|
BaseCache.CacheItem |
getNext()
get the item's next reference
|
int |
getSize() |
Object |
getValue()
get the item's value
|
protected Object |
refreshValue(Object value,
int newSize)
refresh the item's value
|
void |
setNext(BaseCache.CacheItem next)
set the item's next reference
|
String |
toString() |
public int getHashCode()
public Object getKey()
public BaseCache.CacheItem getNext()
public void setNext(BaseCache.CacheItem next)
public Object getValue()
public int getSize()
protected Object refreshValue(Object value, int newSize)
value
- value to be updatednewSize
- of the fieldCopyright © 2019. All rights reserved.