[ 
https://issues.apache.org/jira/browse/COLLECTIONS-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16309085#comment-16309085
 ] 

Gary Gregory commented on COLLECTIONS-667:
------------------------------------------

{quote}
May want to size the ArrayList first to avoid having to expand the internal 
buffer multiple times
{quote}
Agreed.
{quote}
Maybe create a new Collection object that keeps a pointer to each internal 
Collection
{quote}
I am not sure I get this one, feel free to expand.

WRT the method name: "concat" feels weird to me because there is nothing like 
it in the JRE.

Would "addAll()" be misleading since we would be calling "addAll()" on each 
element? Maybe "forEachAddAll()"?

> CollectionUtils Concat Method
> -----------------------------
>
>                 Key: COLLECTIONS-667
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-667
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>            Reporter: BELUGA BEHR
>            Priority: Minor
>
> Add a _concat_ method which returns a Collection of all the Collections in 
> the argument list
> {code}
> public Collection concat(Collection c...)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to