You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rahul Agrawal (Jira)" <ji...@apache.org> on 2020/09/16 20:42:00 UTC

[jira] [Commented] (COLLECTIONS-711) Add Utility to Convert Collection to List

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

Rahul Agrawal commented on COLLECTIONS-711:
-------------------------------------------

Hi, is anyone working on this or can I take this up?

> 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)