You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Richard Eckart de Castilho (JIRA)" <ji...@apache.org> on 2018/11/30 14:22:00 UTC
[jira] [Updated] (COLLECTIONS-706) Add SetUtils.asSet(T... items)
method
[ https://issues.apache.org/jira/browse/COLLECTIONS-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard Eckart de Castilho updated COLLECTIONS-706:
---------------------------------------------------
Description:
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));
> Add SetUtils.asSet(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
>
> 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)