| 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.CacheEntry
public class CacheEntry
Helper class to tie a key to an element.
This is used for operations that are identified by a key but that could benefit from additional information that's available in an element when it can be found in the cache. If the element isn't available, it will benull.
| Constructor Summary | |
|---|---|
| CacheEntry(Object key,
           Element element)Creates a new cache entry. | |
| Method Summary | |
|---|---|
|  Element | getElement()Retrieves the element of this cache entry. | 
|  Object | getKey()Retrieves the key of this cache entry. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public CacheEntry(Object key,
                  Element element)
key - the key of the entryelement - the element of the entry or null if no element corresponds to the key at this time| Method Detail | 
|---|
public Object getKey()
public Element getElement()
null if the cache entry didn't have an element that
 belong to the key at the time of creation.| 
 | ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||