com.hazelcast.cache.impl
Class CacheEntry<K,V>

java.lang.Object
  extended by com.hazelcast.cache.impl.CacheEntry<K,V>
Type Parameters:
K - the type of key.
V - the type of value.
All Implemented Interfaces:
javax.cache.Cache.Entry<K,V>

public class CacheEntry<K,V>
extends Object
implements javax.cache.Cache.Entry<K,V>

Simple Cache.Entry implementation for wrapping a "key,value" pair.

This implementation is used by CacheWriters and Cache.iterator().

See Also:
CacheWriter, Cache.iterator()

Constructor Summary
CacheEntry(K key, V value)
           
 
Method Summary
 K getKey()
           
 V getValue()
           
<T> T
unwrap(Class<T> clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEntry

public CacheEntry(K key,
                  V value)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface javax.cache.Cache.Entry<K,V>

getValue

public V getValue()
Specified by:
getValue in interface javax.cache.Cache.Entry<K,V>

unwrap

public <T> T unwrap(Class<T> clazz)
Specified by:
unwrap in interface javax.cache.Cache.Entry<K,V>


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.