com.hazelcast.util
Class ConcurrentReferenceHashMap.SimpleEntry<K,V>
java.lang.Object
com.hazelcast.util.ConcurrentReferenceHashMap.SimpleEntry<K,V>
- All Implemented Interfaces:
- Serializable, Map.Entry<K,V>
- Direct Known Subclasses:
- ConcurrentReferenceHashMap.WriteThroughEntry, SampleableConcurrentHashMap.SamplingEntry
- Enclosing class:
- ConcurrentReferenceHashMap<K,V>
protected static class ConcurrentReferenceHashMap.SimpleEntry<K,V>
- extends Object
- implements Map.Entry<K,V>, Serializable
- See Also:
- Serialized Form
key
protected final K key
value
protected V value
ConcurrentReferenceHashMap.SimpleEntry
public ConcurrentReferenceHashMap.SimpleEntry(K key,
V value)
ConcurrentReferenceHashMap.SimpleEntry
public ConcurrentReferenceHashMap.SimpleEntry(Map.Entry<? extends K,? extends V> entry)
getKey
public K getKey()
- Specified by:
getKey
in interface Map.Entry<K,V>
getValue
public V getValue()
- Specified by:
getValue
in interface Map.Entry<K,V>
setValue
public V setValue(V value)
- Specified by:
setValue
in interface Map.Entry<K,V>
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Map.Entry<K,V>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map.Entry<K,V>
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.