Class ConcurrentHashMapV8.MapEntry<K,V>
- java.lang.Object
-
- org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8.MapEntry<K,V>
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
- Enclosing class:
- ConcurrentHashMapV8<K,V>
static final class ConcurrentHashMapV8.MapEntry<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>
Exported Entry for EntryIterator
-
-
Field Detail
-
key
final K key
-
val
V val
-
map
final ConcurrentHashMapV8<K,V> map
-
-
Constructor Detail
-
MapEntry
MapEntry(K key, V val, ConcurrentHashMapV8<K,V> map)
-
-
Method Detail
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
-
setValue
public V setValue(V value)
Sets our entry's value and writes through to the map. The value to return is somewhat arbitrary here. Since we do not necessarily track asynchronous changes, the most recent "previous" value could be different from what we return (or could even have been removed, in which case the put will re-establish). We do not and cannot guarantee more.
-
-