Package com.mastfrog.abstractions.misc
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.
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
-
Method Details
-
get
Create a new map. The created map should have no contents.- Type Parameters:
V- The value type- Returns:
- A map
-