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

BELUGA BEHR commented on COLLECTIONS-667:
-----------------------------------------

I have need for such a facility again, so I was reminded of this ticket.
 
{quote}
Maybe create a new Collection object that keeps a pointer to each internal 
Collection
{quote}

Just throwing the idea out there:  Instead of creating a large array and 
copying everything into it, create a new structure that is an array (list) of 
Collections.  Obviously it would have to be an immutable Collection.  The 
collection's iterator would have to iterate over the first collection in the 
list, and when that's done, iterate over the second collection, then the third, 
and so on.

That is to say, maybe this should also be paired with an {{Iterable}} method 
that is... Iterable.all(Collection 1, Collection 2, Collection 3, etc.);

> 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
(v7.6.3#76005)

Reply via email to