Package extra166y

Interface CustomConcurrentHashMap.RemappingFunction<K,​V>

  • Enclosing class:
    CustomConcurrentHashMap<K,​V>

    public static interface CustomConcurrentHashMap.RemappingFunction<K,​V>
    A function computing a new mapping from the given key and its current value to a new value, or null if there is no mapping
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      V remap​(K key, V value)
      Returns a new value for the given key and its current, or null if there is no mapping.
    • Method Detail

      • remap

        V remap​(K key,
                V value)
        Returns a new value for the given key and its current, or null if there is no mapping.
        Parameters:
        key - the key
        value - the current value, or null if none
        Returns:
        a value, or null if none