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:53:00 UTC
[jira] [Comment Edited] (COLLECTIONS-706) Add
SetUtils.unmodifiableSet(T... items) method
[ https://issues.apache.org/jira/browse/COLLECTIONS-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879345#comment-16879345 ]
Gary Gregory edited comment on COLLECTIONS-706 at 7/5/19 2:52 PM:
------------------------------------------------------------------
Closing; we have in 4.3:
- org.apache.commons.collections4.SetUtils.hashSet(E...)
- org.apache.commons.collections4.SetUtils.unmodifiableSet(E...)
was (Author: garydgregory):
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)