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>
public class CoherenceCacheEntry<K,V> extends Object implements javax.cache.Cache.Entry<K,V>
ACache.Entry
implementation.- Since:
- Coherence 12.1.3
- Author:
- jf 2014.11.06
-
-
Constructor Summary
Constructors Constructor Description CoherenceCacheEntry(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
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
CoherenceCacheEntry
public CoherenceCacheEntry(Map.Entry<K,V> entry)
Constructs aCoherenceCacheEntry
given aMap.Entry
.- Parameters:
entry
- the entry
-
CoherenceCacheEntry
public CoherenceCacheEntry(K key, V value)
Constructs aCoherenceCacheEntry
given a key and value- Parameters:
key
- the key of the entryvalue
- the value of the entry
-
CoherenceCacheEntry
public CoherenceCacheEntry(K key, V value, V oldValue)
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
-
-