Bitten by the lambda parameter name
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Jul 16 08:55:06 PDT 2013
On 16/07/13 16:40, Peter Levart wrote:
> Could be efficiently stored in the Map like other entries (using
> special private key), but the same problem exists like with
> computeIfAbsent. Such default method could only work with
> "cooperating" Map implementations and not with any Map...
Perhaps the trick is to use some method you can call on the map to get a
map-with-default out of it. Pretty much like Collections.synchronizedMap
Maurizio
More information about the lambda-dev
mailing list