org.aspectj.org.eclipse.jdt.internal.core.util
Class LRUCache.LRUCacheEntry

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.util.LRUCache.LRUCacheEntry
Enclosing class:
LRUCache

protected static class LRUCache.LRUCacheEntry
extends java.lang.Object

This type is used internally by the LRUCache to represent entries stored in the cache. It is static because it does not require a pointer to the cache which contains it.

See Also:
LRUCache

Field Summary
 java.lang.Object _fKey
          Hash table key
 LRUCache.LRUCacheEntry _fNext
          Next entry in queue
 LRUCache.LRUCacheEntry _fPrevious
          Previous entry in queue
 int _fSpace
          Cache footprint of this entry
 int _fTimestamp
          Time value for queue sorting
 java.lang.Object _fValue
          Hash table value (an LRUCacheEntry object)
 
Constructor Summary
LRUCache.LRUCacheEntry(java.lang.Object key, java.lang.Object value, int space)
          Creates a new instance of the receiver with the provided values for key, value, and space.
 
Method Summary
 java.lang.String toString()
          Returns a String that represents the value of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_fKey

public java.lang.Object _fKey
Hash table key


_fValue

public java.lang.Object _fValue
Hash table value (an LRUCacheEntry object)


_fTimestamp

public int _fTimestamp
Time value for queue sorting


_fSpace

public int _fSpace
Cache footprint of this entry


_fPrevious

public LRUCache.LRUCacheEntry _fPrevious
Previous entry in queue


_fNext

public LRUCache.LRUCacheEntry _fNext
Next entry in queue

Constructor Detail

LRUCache.LRUCacheEntry

public LRUCache.LRUCacheEntry(java.lang.Object key,
                              java.lang.Object value,
                              int space)
Creates a new instance of the receiver with the provided values for key, value, and space.

Method Detail

toString

public java.lang.String toString()
Returns a String that represents the value of this object.

Overrides:
toString in class java.lang.Object