ConcurrentReferenceHashMap.WriteThroughEntry (Groovy 4.0.15)

Package: org.apache.groovy.util.concurrent

## [Java] Class ConcurrentReferenceHashMap.WriteThroughEntry

- org.apache.groovy.util.concurrent.ConcurrentReferenceHashMap.WriteThroughEntry

-     protected class ConcurrentReferenceHashMap.WriteThroughEntry
      extends SimpleEntry

  Custom Entry class used by EntryIterator.next(), that relays setValue changes to the underlying map.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `protected WriteThroughEntry(K k, V v)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public V` | `setValue(V value)` Set our entry's value and writes it through to the map.

- - ### Constructor Detail

    - #### protected WriteThroughEntry(K k, V v)

  - ### Method Detail

    - #### public V setValue(V value)

      Set our entry's value and writes it through to the map. The value to return is somewhat arbitrary: since a WriteThroughEntry does 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.