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

CollectionUtils.addAll() methods should return if the collection has been changed

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: Collection
    • Labels:
      None

      Description

      Like MapUtils.putAll() method returns input map, CollectionUtils.addAll() methods should return the input collection.

      This will allow to init and populate collection at the same line:
      ArrayList inputs = (ArrayList) CollectionUtils.addAll(new ArrayList(), new String[]

      { "value1", "value2" }

      );

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bas Vasily Ivanov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: