Class ConcurrentReferenceHashMap.SimpleEntry<K,V>
java.lang.Object
org.apache.groovy.util.concurrent.ConcurrentReferenceHashMap.SimpleEntry<K,V>
- All Implemented Interfaces:
Serializable,Map.Entry<K,V>
- Direct Known Subclasses:
ConcurrentReferenceHashMap.WriteThroughEntry
- Enclosing class:
- ConcurrentReferenceHashMap<K,
V>
protected static class ConcurrentReferenceHashMap.SimpleEntry<K,V>
extends Object
implements Map.Entry<K,V>, Serializable
Simple mutable entry implementation used by the map views.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleEntry(Map.Entry<? extends K, ? extends V> entry) Creates an entry by copying another entry.SimpleEntry(K key, V value) Creates an entry with the supplied key and value. -
Method Summary
-
Field Details
-
key
Entry key. -
value
Entry value.
-
-
Constructor Details
-
SimpleEntry
Creates an entry with the supplied key and value.- Parameters:
key- the entry keyvalue- the entry value
-
SimpleEntry
Creates an entry by copying another entry.- Parameters:
entry- the entry to copy
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
equals
-
hashCode
public int hashCode() -
toString
-