Article View: borland.public.jbuilder.java.language
Article #118Re: Converting legacy code to use generics
From: Gillmer J. Derge [TeamB]
Date: Sat, 30 Jun 2007 00:20
Date: Sat, 30 Jun 2007 00:20
12 lines
1458 bytes
1458 bytes
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()); -- Gillmer J. Derge [TeamB]
Technical Details
Message-ID:
<4685a1e7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!tethys.csu.net!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!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>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,49d96784a5821e34 X-Google-Attributes: gidf74b3,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 29 Jun 2007 20:20:56 -0400 From: "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com> User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Converting legacy code to use generics References: <4684e22c@newsgroups.borland.com> <4684fd6d@newsgroups.borland.com> <468597a1$1@newsgroups.borland.com> In-Reply-To: <468597a1$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.149.56.247 Message-ID: <4685a1e7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1183162855 24.149.56.247 (29 Jun 2007 17:20:55 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!tethys.csu.net!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail