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

Gary D. Gregory commented on COLLECTIONS-711:
---------------------------------------------

I think we should close this as obsolete since Java can do this for you: 
{code}
someCollection.stream().collect(Collectors.toList())
{code}

> Add Utility to Convert Collection to List
> -----------------------------------------
>
>                 Key: COLLECTIONS-711
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-711
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Collection, List
>            Reporter: David Mollitor
>            Priority: Major
>
> Please take a look at:
>  
> [https://stackoverflow.com/questions/580160/how-to-convert-a-collection-to-list]
>  
> Add a utility method to convert a {{Collection}} to a {{List}}, returning the 
> argument if it is a {{List}} subclass itself.  Make the return type 
> Unmodified for consistency.since if the data comes in as a non-List class, 
> then a copy is made, so modifying the returned collection would not affect 
> the original source, whereas if a {{List}} is passed in, modification to the 
> returned List would impact the original source.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to