javatools.util
Class Cache.CacheItem

java.lang.Object
  |
  +--javatools.util.Cache.CacheItem
Enclosing class:
Cache

class Cache.CacheItem
extends java.lang.Object

This is the class we store in our internal data structures.


Field Summary
(package private)  java.lang.Object item
          The value
(package private)  java.lang.Object key
          The key
(package private)  JQueue.QueueKey qkey
           
(package private)  java.util.Date time
          The time this object was last accessed.
 
Constructor Summary
Cache.CacheItem(java.lang.Object theKey, java.lang.Object theItem)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
(package private)  void setQueueKey(JQueue.QueueKey q)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

java.util.Date time
The time this object was last accessed.


key

java.lang.Object key
The key


item

java.lang.Object item
The value


qkey

JQueue.QueueKey qkey
Constructor Detail

Cache.CacheItem

public Cache.CacheItem(java.lang.Object theKey,
                       java.lang.Object theItem)
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setQueueKey

void setQueueKey(JQueue.QueueKey q)