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 Details

    • key

      protected final K key
      Entry key.
    • value

      protected V value
      Entry value.
  • Constructor Details

    • SimpleEntry

      public SimpleEntry(K key, V value)
      Creates an entry with the supplied key and value.
      Parameters:
      key - the entry key
      value - the entry value
    • SimpleEntry

      public SimpleEntry(Map.Entry<? extends K,? extends V> entry)
      Creates an entry by copying another entry.
      Parameters:
      entry - the entry to copy
  • Method Details