commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Andrew.Fergu...@arm.com>
Subject RE: toSet(Object []) missing?
Date Mon, 24 Feb 2003 16:07:21 GMT

thanks for the replies,

do you think its worth adding to commons?

>You can create a Set from a Collection, and List extends Collection.
>
>Robert Egan
>
>
>-----Original Message-----
>From: Erik Price [mailto:eprice@ptc.com]
>Sent: Monday, February 24, 2003 10:53 AM
>To: Jakarta Commons Users List
>Subject: Re: toSet(Object []) missing?
>
>
>
>
>Andrew.Ferguson@arm.com 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.
>
>
>
>Erik




Mime
View raw message