org.codehaus.gpars

groovyx.gpars.extra166y
[Java] Interface CustomConcurrentHashMap.RemappingFunction


public static interface CustomConcurrentHashMap.RemappingFunction

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
java.lang.Object remap(java.lang.Object key, java.lang.Object value)

Returns a new value for the given key and its current, or null if there is no mapping.

 

Method Detail

remap

public java.lang.Object remap(java.lang.Object key, java.lang.Object 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


 

Copyright © 2008–2013 Václav Pech. All Rights Reserved.