[
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)