Interface DefaultMap.KeyAwareFactory<K,​V>

Type Parameters:
K - The type of keys.
V - The type of values.
Enclosing class:
DefaultMap<K,​V>
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 static interface DefaultMap.KeyAwareFactory<K,​V>
An advanced factory that has access to the key when it is creating the value to associate with it.
Author:
Donal Fellows
  • Method Summary

    Modifier and Type Method Description
    V createValue​(K key)
    Create a new value for the default map.
  • Method Details

    • createValue

      V createValue​(K key)
      Create a new value for the default map.
      Parameters:
      key - The key that will be used to store the value in the map.
      Returns:
      the value to store