commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <epr...@ptc.com>
Subject Re: toSet(Object []) missing?
Date Mon, 24 Feb 2003 16:35:03 GMT


Andrew.Ferguson@arm.com wrote:
> thanks for the replies,
> 
> do you think its worth adding to commons?

I would not be the person to make such a decision.  But it seems easier 
to use the solution Derek S provided.  I had forgotten that you could 
just pass the List as an argument to a Set constructor to get the effect 
you wanted.

Derek S said:

> Andrew,
> 
> Try:
> Set result = new HashSet(Arrays.asList(objectArray)); 




Erik


Mime
View raw message