[concurrency-interest] CHM#replace(key, null, newValue)

Dhanji R. Prasanna dhanji at gmail.com
Wed Apr 2 08:12:26 EDT 2008


On Tue, Apr 1, 2008 at 8:44 PM, Peter Veentjer <alarmnummer at gmail.com>
wrote:

> It is a shame that the value to be placed in the hashmap can't be
> created lazy.


You could use a Future<T>. I think there was a thread some time ago
discussing this (about a CHM.putIfAbsent(Callable)). The Future<T> was
crazybob's idea on that thread.

Dhanji.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20080402/d7578df1/attachment.html 


More information about the Concurrency-interest mailing list