Class WriteThroughEntry<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map.Entry<K,​V>

    final class WriteThroughEntry<K,​V>
    extends java.util.AbstractMap.SimpleEntry<K,​V>
    An entry that allows updates to write through to the backing map.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.ConcurrentMap<K,​V> map  
      (package private) static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      WriteThroughEntry​(java.util.concurrent.ConcurrentMap<K,​V> map, K key, V value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V setValue​(V value)  
      (package private) java.lang.Object writeReplace()  
      • Methods inherited from class java.util.AbstractMap.SimpleEntry

        equals, getKey, getValue, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • map

        private final java.util.concurrent.ConcurrentMap<K,​V> map
    • Constructor Detail

      • WriteThroughEntry

        WriteThroughEntry​(java.util.concurrent.ConcurrentMap<K,​V> map,
                          K key,
                          V value)
    • Method Detail

      • setValue

        public V setValue​(V value)
        Specified by:
        setValue in interface java.util.Map.Entry<K,​V>
        Overrides:
        setValue in class java.util.AbstractMap.SimpleEntry<K,​V>
      • writeReplace

        java.lang.Object writeReplace()