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 key
          Hash table key
 LRUCache.LRUCacheEntry next
          Next entry in queue
 LRUCache.LRUCacheEntry previous
          Previous entry in queue
 int space
          Cache footprint of this entry
 int timestamp
          Time value for queue sorting
 java.lang.Object value
          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

key

public java.lang.Object key
Hash table key


value

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


timestamp

public int timestamp
Time value for queue sorting


space

public int space
Cache footprint of this entry


previous

public LRUCache.LRUCacheEntry previous
Previous entry in queue


next

public LRUCache.LRUCacheEntry next
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