Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.programmer > #5502
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Something Better than ArrayList |
| Date | 2011-06-21 16:39 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <0qa20751kl7amfup6elpji0fbsaove7mdl@4ax.com> (permalink) |
| References | <hoa007h62o1tas6h5p6qlls6i8i2nf9q84@4ax.com> <1337fe1a-2385-47c1-b966-9925f79d0ba3@j28g2000vbp.googlegroups.com> <jd2207949b23u2c20ea80cdqmer8i1515q@4ax.com> <alpine.DEB.2.00.1106212253080.6476@urchin.earth.li> |
On Tue, 21 Jun 2011 22:56:51 +0100, Tom Anderson
<twic@urchin.earth.li> wrote:
[snip]
>You can't do it with a normal Map. You can do it with a ConcurrentMap:
>
>http://download.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentMap.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
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Something Better than ArrayList Gene Wirchenko <genew@ocis.net> - 2011-06-20 22:34 -0700
Re: Something Better than ArrayList Donkey Hottie <donkey@fredriksson.dy.fi> - 2011-06-21 09:55 +0300
Re: Something Better than ArrayList Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-06-21 09:00 +0000
Re: Something Better than ArrayList Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-06-21 10:48 +0000
Re: Something Better than ArrayList Tom Anderson <twic@urchin.earth.li> - 2011-06-21 22:57 +0100
Re: Something Better than ArrayList Paul Cager <paul.cager@googlemail.com> - 2011-06-21 02:22 -0700
Re: Something Better than ArrayList Gene Wirchenko <genew@ocis.net> - 2011-06-21 14:19 -0700
Re: Something Better than ArrayList Tom Anderson <twic@urchin.earth.li> - 2011-06-21 22:56 +0100
Re: Something Better than ArrayList Gene Wirchenko <genew@ocis.net> - 2011-06-21 16:39 -0700
Re: Something Better than ArrayList Gene Wirchenko <genew@ocis.net> - 2011-06-21 07:51 -0700
csiph-web