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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0
    • 4.x
    • Collection, List
    • 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

        1. COLLECTIONS-517.patch
          20 kB
          Hollis Waite
        There are no Sub-Tasks for this issue.

        Activity

          People

            Unassigned Unassigned
            hwaite Hollis Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: