Class ConcurrentReferenceHashMap.InitializableEntry<K,V>

java.lang.Object
org.apache.groovy.util.concurrent.ConcurrentReferenceHashMap.InitializableEntry<K,V>
All Implemented Interfaces:
Map.Entry<K,V>
Enclosing class:
ConcurrentReferenceHashMap<K,V>

protected static class ConcurrentReferenceHashMap.InitializableEntry<K,V> extends Object implements Map.Entry<K,V>
Reusable entry implementation for cached entry iteration.
  • Constructor Details

    • InitializableEntry

      protected InitializableEntry()
  • Method Details

    • 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>
    • init

      public Map.Entry<K,V> init(K key, V value)
      Reinitializes this entry with the supplied key and value.
      Parameters:
      key - the entry key
      value - the entry value
      Returns:
      this entry
    • setValue

      public V setValue(V value)
      Specified by:
      setValue in interface Map.Entry<K,V>