jsr166e
Interface ConcurrentHashMapV8.RemappingFunction<K,V>

Enclosing class:
ConcurrentHashMapV8<K,V>

public static interface ConcurrentHashMapV8.RemappingFunction<K,V>

A function computing a new mapping given a key and its current mapped value (or null if there is no current mapping). This is a place-holder for an upcoming JDK8 interface.


Method Summary
 V remap(K key, V value)
          Returns a new value given a key and its current value.
 

Method Detail

remap

V remap(K key,
        V value)
Returns a new value given a key and its current value.

Parameters:
key - the (non-null) key
value - the current value, or null if there is no mapping
Returns:
a non-null value


Copyright © 2009-2012. All Rights Reserved.