Article View: borland.public.jbuilder.java.language
Article #119Re: Converting legacy code to use generics
From: John Steel
Date: Sun, 01 Jul 2007 16:46
Date: Sun, 01 Jul 2007 16:46
18 lines
1805 bytes
1805 bytes
"Gillmer J. Derge [TeamB]" <spam@gillmerderge.com> wrote in message news:4685a1e7@newsgroups.borland.com... > John Steel wrote: >> (the original caller is ArrayList<Collection> gameList = new >> ArrayList <Collection> (games.getValues()); ). > > Your new ArrayList isn't going to be a list of Collection's. It's a list > of GameRec's, containing the same GameRec's that are in the > games.getValues() collection. > > ArrayList<GameRec> gameList = new ArrayList<GameRec>(games.getValues()); > That did it - thanks. I even fixed the Comparater one after your help too - thanks again. -- John www.phonewebcam.com
Technical Details
Message-ID:
<4687da7f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4684e22c@newsgroups.borland.com> <4684fd6d@newsgroups.borland.com> <468597a1$1@newsgroups.borland.com> <4685a1e7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,49d96784a5821e34 X-Google-Attributes: gidf74b3,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "John Steel" <john.steel@phonewebcam.com> From: "John Steel" <john.steel@phonewebcam.com> Newsgroups: borland.public.jbuilder.java.language References: <4684e22c@newsgroups.borland.com> <4684fd6d@newsgroups.borland.com> <468597a1$1@newsgroups.borland.com> <4685a1e7@newsgroups.borland.com> Subject: Re: Converting legacy code to use generics Date: Sun, 1 Jul 2007 17:46:42 +0100 Lines: 20 Organization: www.phonewebcam.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 80.192.241.252 Message-ID: <4687da7f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1183308415 80.192.241.252 (1 Jul 2007 09:46:55 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail X-Original-Bytes: 1663