Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Something Better than ArrayList

Reply
Thread Tools

Something Better than ArrayList

 
 
Gene Wirchenko
Guest
Posts: n/a
 
      06-21-2011
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GL2 better than the XLs? Consumer grade HDs better than pro-sumer Mini DVs? dh@. DVD Video 1 08-28-2008 07:20 PM
Is splint really better than lint? Is there a better tool than splint? Peter Bencsik C Programming 2 09-21-2006 10:02 PM
a class inherited from ArrayList, is saved to ViewState, why the type of the object read from ViewSate is not the class, but the parent, ArrayList leal ting ASP .Net 1 02-10-2004 07:45 PM
writeObject with ArrayList of ArrayList? Kaidi Java 4 01-03-2004 08:16 PM
Iterate through ArrayList using an another ArrayList Saravanan Rathinavelu ASP .Net 3 08-19-2003 07:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57