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

Replace Collection with Iterable where applicable in the API

    Details

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

      Description

      There are still several places in the API which take a Collection as input but could be much more useful if replaced with an Iterable.

      Examples:

      • many of the functor classes have a static factory method to add a collection of predicates:
         public static <T> Predicate<T> anyPredicate(final Collection<? extends Predicate<T>> predicates)
         
         should better be
      
         public static <T> Predicate<T> anyPredicate(final Iterable<? extends Predicate<T>> predicates) {
      
      • CollectionUtils: forAllDo, collate, select ...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tn Thomas Neidhart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: