Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-517

[Collection|List]Utils.[intersection|union] should accept vararg parameters

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: 4.x
    • Component/s: Collection, List
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hwaite Hollis Waite

              Dates

              • Created:
                Updated:

                Issue deployment