Class ForwardingLoadingCache.SimpleForwardingLoadingCache<K,V>

All Implemented Interfaces:
Function<K,V>, Cache<K,V>, LoadingCache<K,V>
Enclosing class:
ForwardingLoadingCache<K,V>

public abstract static class ForwardingLoadingCache.SimpleForwardingLoadingCache<K,V> extends ForwardingLoadingCache<K,V>
A simplified version of ForwardingLoadingCache where subclasses can pass in an already constructed LoadingCache as the delegate.
Since:
10.0
Author:
Charles Fry
  • Constructor Details

    • SimpleForwardingLoadingCache

      protected SimpleForwardingLoadingCache(LoadingCache<K,V> delegate)
  • Method Details

    • delegate

      protected final LoadingCache<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.
      Specified by:
      delegate in class ForwardingLoadingCache<K,V>