[
https://issues.apache.org/jira/browse/COLLECTIONS-517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577876#comment-14577876
]
Thomas Neidhart commented on COLLECTIONS-517:
---------------------------------------------
While working on the patch, I noticed a few things:
* CollectionUtils.union and ListUtils.union use a different definition
* currently there are no corresponding set operations
* Bag would be a much better suited collection than a list with multiple
values as return type
thus I think the methods in CollectionUtils should be deprecated, and new ones
created in SetUtils and IterableUtils.
> [Collection|List]Utils.[intersection|union] should accept vararg parameters
> ---------------------------------------------------------------------------
>
> Key: COLLECTIONS-517
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-517
> Project: Commons Collections
> Issue Type: Improvement
> Components: Collection, List
> Affects Versions: 4.0
> Reporter: Hollis Waite
> Priority: Minor
> Fix For: 4.1
>
> Attachments: COLLECTIONS-517.patch
>
>
> Would be convenient if intersection/union methods accepted arbitrary number
> of arguments. Two-arg methods could be retained in order to avoid compiler
> warnings
> (https://issues.apache.org/jira/browse/COLLECTIONS-481?focusedCommentId=13762173&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13762173).
> Alternatively, method could be overloaded to accept a single Iterable of
> Lists/Sets. I could create a patch for this if it's deemed worthwhile.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)