You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2019/07/05 14:52:00 UTC
[jira] [Closed] (COLLECTIONS-706) Add SetUtils.unmodifiableSet(T...
items) method
[ https://issues.apache.org/jira/browse/COLLECTIONS-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory closed COLLECTIONS-706.
------------------------------------
Closing; we have:
- org.apache.commons.collections4.SetUtils.hashSet(E...)
- org.apache.commons.collections4.SetUtils.unmodifiableSet(E...)
> Add SetUtils.unmodifiableSet(T... items) method
> -----------------------------------------------
>
> Key: COLLECTIONS-706
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-706
> Project: Commons Collections
> Issue Type: New Feature
> Reporter: Richard Eckart de Castilho
> Priority: Major
> Fix For: 4.3
>
>
> Add an equivalent to the Arrays.asList() method for conveniently creating sets. A trivial implementation would be:
> SetUtils.asSet(T... items) -> return Collections.unmodifiableSet(new HashSet<>(asList(items));
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)