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 be null.
| Access | Constructor and Description |
|---|---|
| public | CacheEntry(Object
the key of the entry key, Element the element of the entry or element)null if no element corresponds to the key at this timeCreates a new cache entry. |
| Modifier and Type | Method and Description |
|---|---|
| public Element | Returns: the element that corresponds to this key ornull if the cache entry didn't have an element that
belong to the key at the time of creation.Retrieves the element of this cache entry. |
| public Object |
| element | back to summary |
|---|---|
| private final Element element | |
| key | back to summary |
|---|---|
| private final Object key | |
| CacheEntry | back to summary |
|---|---|
| public CacheEntry(Object key, Element element) Creates a new cache entry. | |
| getElement | back to summary |
|---|---|
| public Element getElement() Retrieves the element of this cache entry.
| |
| getKey | back to summary |
|---|---|
| public Object getKey() Retrieves the key of this cache entry.
| |