On Tue, 21 Jun 2011 22:56:51 +0100, Tom Anderson
<> wrote:
[snip]
>You can't do it with a normal Map. You can do it with a ConcurrentMap:
>
>http://download.oracle.com/javase/6/...urrentMap.html
>
>ConcurrentMap has it because you can't easily build an efficient
>threadsafe implementation of putIfAbsent on top of the normal Map
>interface. It's a bit of a shame Map doesn't have it, because it's useful
>even if you're not dealing with multiple threads!
Thank you for that bit. I did not know if I was reading right or
missing something.
Sincerely,
Gene Wirchenko