🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15689

collections and deep copy

#15689
From: Werner Dubitzky
Date: Tue, 11 May 1999 00:00
43 lines
1563 bytes
This is a multi-part message in MIME format.
--------------0B243E110E07E15A3E2364F6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

How can I make DEEP copies of collections within the
Collections Framework?

The two approaches below make only SHALLOW copies:

...
List copy = new ArrayList(aList);
...

...
Collections.copy(destList,sourceList);
....

Cheers.
Mabuse

--------------0B243E110E07E15A3E2364F6
Content-Type: text/x-vcard; charset=us-ascii;
 name="w.dubitzky.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Werner Dubitzky
Content-Disposition: attachment;
 filename="w.dubitzky.vcf"

begin:vcard 
n:;Homepage
tel;fax:+44-(0)-1232-366068
tel;work:+44-(0)-1232-368330
x-mozilla-html:TRUE
url:http://www.infj.ulst.ac.uk/~cbbg23/interests.html
org:University of Ulster, Faculty of Informatics
adr:;;Co. Antrim BT37 OQB;;;;Northern Ireland
version:2.1
title:Dr. Werner Dubitzky
fn:Homepage
end:vcard

--------------0B243E110E07E15A3E2364F6--
Technical Details
Message-ID: <3738372E.6C32A2F9@ulst.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d93055e5a2ac437a,start
X-Google-Attributes: gidf74b3,public
From: Werner Dubitzky <w.dubitzky@ulst.ac.uk>
Subject: collections and deep copy
Date: 1999/05/11
Message-ID: <3738372E.6C32A2F9@ulst.ac.uk>
X-Deja-AN: 476588918
X-Accept-Language: de-DE
Content-Type: multipart/mixed; boundary="------------0B243E110E07E15A3E2364F6"
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language