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
ConstructorsConstructorDescriptionCoherenceCacheEntry(Map.Entry<K, V> entry) Constructs aCoherenceCacheEntrygiven aMap.Entry.CoherenceCacheEntry(K key, V value) Constructs aCoherenceCacheEntrygiven a key and valueCoherenceCacheEntry(K key, V value, V oldValue) Constructs aCoherenceCacheEntrygiven a key, value and previous value. -
Method Summary
-
Constructor Details
-
CoherenceCacheEntry
Constructs aCoherenceCacheEntrygiven aMap.Entry.- Parameters:
entry- the entry
-
CoherenceCacheEntry
Constructs aCoherenceCacheEntrygiven a key and value- Parameters:
key- the key of the entryvalue- the value of the entry
-
CoherenceCacheEntry
Constructs aCoherenceCacheEntrygiven 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
nullif one is not defined
-
equals
-
hashCode
public int hashCode()
-