public class CacheEntry
extends java.lang.Object
null
.Modifier and Type | Field and Description |
---|---|
private Element |
element |
private java.lang.Object |
key |
Constructor and Description |
---|
CacheEntry(java.lang.Object key,
Element element)
Creates a new cache entry.
|
Modifier and Type | Method and Description |
---|---|
Element |
getElement()
Retrieves the element of this cache entry.
|
java.lang.Object |
getKey()
Retrieves the key of this cache entry.
|
private final java.lang.Object key
private final Element element
public CacheEntry(java.lang.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 timepublic java.lang.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.