You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "BELUGA BEHR (JIRA)" <ji...@apache.org> on 2019/02/03 15:44:00 UTC
[jira] [Updated] (COLLECTIONS-711) Add Utility to Convert
Collection to List
[ https://issues.apache.org/jira/browse/COLLECTIONS-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
BELUGA BEHR updated COLLECTIONS-711:
------------------------------------
Description:
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.
was:
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.
> 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: BELUGA BEHR
> 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
(v7.6.3#76005)