Class ForwardingCache.SimpleForwardingCache<K,V>

  • All Implemented Interfaces:
    Cache<K,V>
    Enclosing class:
    ForwardingCache < K , V>


    @Beta
    public abstract static class ForwardingCache.SimpleForwardingCache<K,V>
    extends ForwardingCache<K,V>
    A simplified version of ForwardingCache where subclasses can pass in an already constructed Cache as the delegete.
    Since:
    10.0
    • Constructor Detail

      • SimpleForwardingCache

        protected SimpleForwardingCache(Cache<K,V> delegate)
    • Method Detail

      • delegate

        protected final Cache<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.