org.mmbase.util
Class LRUHashtable.LRUEntry

java.lang.Object
  extended byorg.mmbase.util.LRUHashtable.LRUEntry
All Implemented Interfaces:
java.util.Map.Entry, SizeMeasurable
Enclosing class:
LRUHashtable

public class LRUHashtable.LRUEntry
extends java.lang.Object
implements java.util.Map.Entry, SizeMeasurable

Element used to store information from the LRUHashtable.


Field Summary
protected  java.lang.Object 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  java.lang.Object value
          The element value
 
Method Summary
 int getByteSize()
          Determins the byte-size of this object
 int getByteSize(SizeOf sizeof)
          Determins the byte-size of this object using the given SizeOf instance.
 java.lang.Object getKey()
           
 java.lang.Object getValue()
           
 java.lang.Object setValue(java.lang.Object o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Field Detail

value

protected java.lang.Object value
The element value


next

protected LRUHashtable.LRUEntry next
The next, newer, element


prev

protected LRUHashtable.LRUEntry prev
The previous, older, element


key

protected java.lang.Object key
The element key


requestCount

protected int requestCount
the number of times this entry has been requested

Method Detail

getKey

public java.lang.Object getKey()
Specified by:
getKey in interface java.util.Map.Entry

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface java.util.Map.Entry

setValue

public java.lang.Object setValue(java.lang.Object o)
Specified by:
setValue in interface java.util.Map.Entry

getByteSize

public int getByteSize()
Description copied from interface: SizeMeasurable
Determins the byte-size of this object

Specified by:
getByteSize in interface SizeMeasurable

getByteSize

public int getByteSize(SizeOf sizeof)
Description copied from interface: SizeMeasurable
Determins the byte-size of this object using the given SizeOf instance. A SizeOf instance stores a Set already counted objects. So this method is typically called by SizeOf itself (recursion).

Specified by:
getByteSize in interface SizeMeasurable

toString

public java.lang.String toString()


MMBase build 1.7.1.20041002