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

Satisfies CollectionUtils Method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 3.2.2, 4.0-alpha1, 4.0, 4.x, Nightly Builds
    • None
    • Collection

    Description

      I recently needed to use something like the CollectionUtils.exists method, but I wanted to know if a given predicate was true for ALL members of a collection, rather than just one. I cooked up a quick method called satisfies (help would be appreciated on the name - it's the best that I could come up with) that determines whether a given predicate is true for all members of a collection.

      Been using this library a good deal recently - hoping to get involved in its development!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              CainJ13 Josh Cain
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2m
                  2m
                  Remaining:
                  Remaining Estimate - 2m
                  2m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified