commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Sklyut <Dmitry_Skl...@orcom.com>
Subject RE: Removing duplicates from a Collection
Date Mon, 12 May 2003 13:36:16 GMT
why don't you do:

List l;
Set s;

s.addAll(l);

That should do the trick.

D

-----Original Message-----
From: Adam Sherman [mailto:adam@tritus.ca]
Sent: Monday, May 12, 2003 9:28 AM
To: commons-user@jakarta.apache.org
Subject: Removing duplicates from a Collection


Is there a class in commons to remove duplicates from a List?

Thanks,

A.

--
Adam Sherman
Tritus CG Inc.
http://www.tritus.ca/
+1 (613) 797-6819

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org



NOTICE:  This communication may contain proprietary or other confidential
business information of Orcom Solutions, Inc.  If you are not the intended
recipient or believe that you may have received this communication in error,
please reply to the sender indicating that fact and delete the copy you
received.  In addition, you should not print, copy, retransmit, disseminate,
or otherwise use the information.  Thank you.  



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message