Class ForwardingConcurrentMap<K,V>

  • All Implemented Interfaces:
    ConcurrentMap<K,V>, Map<K,V>


    @GwtCompatible
    public abstract class ForwardingConcurrentMap<K,V>
    extends ForwardingMap<K,V>
    implements ConcurrentMap<K,V>
    A concurrent map which forwards all its method calls to another concurrent map. Subclasses should override one or more methods to modify the behavior of the backing map as desired per the decorator pattern.
    Since:
    2.0 (imported from Google Collections Library)
    • Constructor Detail

      • ForwardingConcurrentMap

        protected ForwardingConcurrentMap()
        Constructor for use by subclasses.
    • Method Detail

      • delegate

        protected abstract ConcurrentMap<K,V> delegate()
        Description copied from class: ForwardingObject
        Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such as ForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.
      • putIfAbsent

        public V putIfAbsent(K key,
                             V value)
      • replace

        public V replace(K key,
                         V value)
      • replace

        public boolean replace(K key,
                               V oldValue,
                               V newValue)