K
- the type of keysV
- the type of valuespublic class CoherenceCacheEntry<K,V> extends Object implements javax.cache.Cache.Entry<K,V>
Cache.Entry
implementation.Constructor and Description |
---|
CoherenceCacheEntry(K key,
V value)
Constructs a
CoherenceCacheEntry given a key and value |
CoherenceCacheEntry(K key,
V value,
V oldValue)
Constructs a
CoherenceCacheEntry given a key, value and
previous value. |
CoherenceCacheEntry(Map.Entry<K,V> entry)
Constructs a
CoherenceCacheEntry given a Map.Entry . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
K |
getKey() |
V |
getOldValue()
Obtains the old value for the entry.
|
V |
getValue() |
int |
hashCode() |
<T> T |
unwrap(Class<T> clazz) |
public CoherenceCacheEntry(Map.Entry<K,V> entry)
CoherenceCacheEntry
given a Map.Entry
.entry
- the entrypublic CoherenceCacheEntry(K key, V value)
CoherenceCacheEntry
given a key and valuekey
- the key of the entryvalue
- the value of the entrypublic CoherenceCacheEntry(K key, V value, V oldValue)
CoherenceCacheEntry
given a key, value and
previous value.key
- the key of the entryvalue
- the value of the entryoldValue
- the previous value of the entry