Interface MapSupplier<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MapSupplier<T>
Allows one to provide the backing storage for a cache (the default is ConcurrentHashMap) if desired. This interface is necessary so a map can be created for the cache entry type without exposing it as public API.
Author:
Tim Boudreau
  • Method Summary

    Modifier and Type
    Method
    Description
    <V> Map<T,V>
    get()
    Create a new map.
  • Method Details

    • get

      <V> Map<T,V> get()
      Create a new map. The created map should have no contents.
      Type Parameters:
      V - The value type
      Returns:
      A map