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

Replace Collection with Iterable where applicable in the API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-alpha1, 4.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: