Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javatools.util
Class Cache.CacheItem  view Cache.CacheItem download Cache.CacheItem.java

java.lang.Object
  extended byjavatools.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
          The queue to use to check when to remove an object from the cache.
(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)
          Adds an item to the cache.
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks if an object equals this one.
 int hashCode()
          Returns a hash code for this object.
(package private)  void setQueueKey(JQueue.QueueKey q)
          Sets the queue key for this object.
 
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
The queue to use to check when to remove an object from the cache.

Constructor Detail

Cache.CacheItem

public Cache.CacheItem(java.lang.Object theKey,
                       java.lang.Object theItem)
Adds an item to the cache.

Method Detail

equals

public boolean equals(java.lang.Object other)
Checks if an object equals this one.


hashCode

public int hashCode()
Returns a hash code for this object.


setQueueKey

void setQueueKey(JQueue.QueueKey q)
Sets the queue key for this object.