Interface MapFactory

  • 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 MapFactory
    A factory which creates ConcurrentMap instances.
    • Method Detail

      • create

        <K,​V> @NonNull ConcurrentMap<K,​V> create()
        Create a new map instance for the given types
        Type Parameters:
        K - The key
        V - The value
        Returns:
        A new map instance