commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Egan <>
Subject RE: toSet(Object []) missing?
Date Mon, 24 Feb 2003 16:01:45 GMT
You can create a Set from a Collection, and List extends Collection.

Robert Egan

-----Original Message-----
From: Erik Price []
Sent: Monday, February 24, 2003 10:53 AM
To: Jakarta Commons Users List
Subject: Re: toSet(Object []) missing? wrote:
> hi,
>  is there any API to do
>       Set   ArrayToSet(Object [])
> I can't find anything in the Java API or Commons?

There is

     List java.util.Arrays.asList(Object[] arr)

But I don't see one for Set.


To unsubscribe, e-mail:
For additional commands, e-mail:
PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary, confidential
and/or privileged information.  If you are not the intended recipient, any
use, copying, disclosure, dissemination or distribution is strictly
prohibited.  If you are not the intended recipient, please notify the sender
immediately by return e-mail, delete this communication and destroy all

View raw message