public class LRUHashtable.LRUEntry extends Object implements Map.Entry<K,V>, SizeMeasurable
| Modifier and Type | Field and Description |
|---|---|
protected K |
key
The element key
|
protected LRUHashtable.LRUEntry |
next
The next, newer, element
|
protected LRUHashtable.LRUEntry |
prev
The previous, older, element
|
protected int |
requestCount
the number of times this
entry has been requested
|
protected V |
value
The element value
|
| Constructor and Description |
|---|
LRUEntry() |
LRUEntry(K key,
V val) |
LRUEntry(K key,
V value,
LRUHashtable.LRUEntry prev,
LRUHashtable.LRUEntry next) |
| Modifier and Type | Method and Description |
|---|---|
int |
getByteSize()
Determines the byte-size of this object
|
int |
getByteSize(SizeOf sizeof)
Determines the byte-size of this object using the given SizeOf instance.
|
K |
getKey() |
V |
getValue() |
V |
setValue(V o) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparingByKey, comparingByKey, comparingByValue, comparingByValue, equals, hashCodeprotected V value
protected LRUHashtable.LRUEntry next
protected LRUHashtable.LRUEntry prev
protected K key
protected int requestCount
LRUEntry()
LRUEntry(K key, V value, LRUHashtable.LRUEntry prev, LRUHashtable.LRUEntry next)
public int getByteSize()
SizeMeasurablegetByteSize in interface SizeMeasurablepublic int getByteSize(SizeOf sizeof)
SizeMeasurablegetByteSize in interface SizeMeasurableMMBase 1.9-SNAPSHOT - ${javadoctimestamp}