Class CoherenceCacheEntry<K,V>
java.lang.Object
com.tangosol.coherence.jcache.common.CoherenceCacheEntry<K,V>
- Type Parameters:
K
- the type of keysV
- the type of values
- All Implemented Interfaces:
javax.cache.Cache.Entry<K,
V>
A
Cache.Entry
implementation.- Since:
- Coherence 12.1.3
- Author:
- jf 2014.11.06
-
Constructor Summary
ConstructorDescriptionCoherenceCacheEntry
(Map.Entry<K, V> entry) Constructs aCoherenceCacheEntry
given aMap.Entry
.CoherenceCacheEntry
(K key, V value) Constructs aCoherenceCacheEntry
given a key and valueCoherenceCacheEntry
(K key, V value, V oldValue) Constructs aCoherenceCacheEntry
given a key, value and previous value. -
Method Summary
-
Constructor Details
-
CoherenceCacheEntry
Constructs aCoherenceCacheEntry
given aMap.Entry
.- Parameters:
entry
- the entry
-
CoherenceCacheEntry
Constructs aCoherenceCacheEntry
given a key and value- Parameters:
key
- the key of the entryvalue
- the value of the entry
-
CoherenceCacheEntry
Constructs aCoherenceCacheEntry
given a key, value and previous value.- Parameters:
key
- the key of the entryvalue
- the value of the entryoldValue
- the previous value of the entry
-
-
Method Details
-
getKey
-
getValue
-
unwrap
-
getOldValue
Obtains the old value for the entry.- Returns:
- the old value of the entry or
null
if one is not defined
-
equals
-
hashCode
public int hashCode()
-