You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2010/06/20 01:02:22 UTC
[jira] Commented: (COLLECTIONS-223) CollectionUtils.addAll()
methods should return the input collection
[ https://issues.apache.org/jira/browse/COLLECTIONS-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880568#action_12880568 ]
Henri Yandell commented on COLLECTIONS-223:
-------------------------------------------
Note, I've changed the other 2 addAll methods (Enumeration and Object[]) to return a boolean too.
> CollectionUtils.addAll() methods should return the input collection
> -------------------------------------------------------------------
>
> Key: COLLECTIONS-223
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-223
> Project: Commons Collections
> Issue Type: Improvement
> Components: Collection
> Affects Versions: 3.2
> Reporter: Vasily Ivanov
> Priority: Minor
> Fix For: 4.0
>
>
> Like MapUtils.putAll() method returns input map, CollectionUtils.addAll() methods should return the input collection.
> This will allow to init and populate collection at the same line:
> ArrayList inputs = (ArrayList) CollectionUtils.addAll(new ArrayList(), new String[] { "value1", "value2" });
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.