V - The type of the item to storepublic class DefaultCacheItem<V> extends Object implements CacheItem<V>
CacheItem that simply stores a value and
does nothing when CacheItem.remove() is called.| Constructor and Description |
|---|
DefaultCacheItem(V item)
Creates a new cache item.
|
| Modifier and Type | Method and Description |
|---|---|
V |
getItem()
Returns the wrapped item.
|
void |
remove()
Notifies the item that it is removed from the cache and can free any
resources it uses.
|
Copyright © 2026. All rights reserved.