[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-dev
Subject: [jira] [Updated] (COLLECTIONS-706) Add SetUtils.asSet(T... items) method
From: "Richard Eckart de Castilho (JIRA)" <jira () apache ! org>
Date: 2018-11-30 14:22:00
Message-ID: JIRA.13201631.1543587616000.64860.1543587720437 () Atlassian ! JIRA
[Download RAW message or body]
[ 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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic