Thomas Neidhart created COLLECTIONS-466:
-------------------------------------------

             Summary: Replace Collection with Iterable where applicable in the 
API
                 Key: COLLECTIONS-466
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-466
             Project: Commons Collections
          Issue Type: Improvement
            Reporter: Thomas Neidhart
             Fix For: 4.0


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:

{noformat}
   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) {
{noformat}

 * CollectionUtils: forAllDo, collate, select ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to