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 thread-safe map instances.
    Since:
    4.0.0
    • Method Detail

      • create

        <K,​V> Map<K,​V> create()
        Create a new map instance for the given types.
        Type Parameters:
        K - key type
        V - value type
        Returns:
        a new map instance
        Since:
        4.0.0