blackboard.persist
Class CacheEntry

java.lang.Object
  extended by blackboard.persist.CacheEntry

public class CacheEntry
extends java.lang.Object

The CacheEntry represents an item stored in the cache.

Since:
Bb 6.0
Version:
$Revision: #1 $ $Date: 2005/06/27 $

Constructor Summary
CacheEntry(java.lang.Object key, java.lang.Object value)
           
 
Method Summary
 java.lang.Object getKey()
          Returns the key of this cache entry.
 java.lang.Object getValue()
          Returns the value of this cache entry.
 boolean isValid()
          Returns whether or not the cache entry is still valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEntry

public CacheEntry(java.lang.Object key,
                  java.lang.Object value)
Method Detail

isValid

public boolean isValid()
Returns whether or not the cache entry is still valid.

Returns:
boolean If the cache entry is still valid.

getValue

public java.lang.Object getValue()
Returns the value of this cache entry. This operation is expensive, because it will clone the value if it is a BbObject or BbList

Returns:
Object the value of this cache entry

getKey

public java.lang.Object getKey()
Returns the key of this cache entry.

Returns:
Object the key of this cache entry


Copyright © 2003 Blackboard, Inc. All Rights Reserved.