Interface MyConcurrentHashMap.IValueFactory<V>

Enclosing class:
MyConcurrentHashMap<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 MyConcurrentHashMap.IValueFactory<V>
Interface for constructing new values on demand
Author:
Steven Arzt
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new value to put into the map
  • Method Details

    • createValue

      V createValue()
      Creates a new value to put into the map
      Returns:
      The value to put into the map