commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COLLECTIONS-466) Replace Collection with Iterable where applicable in the API
Date Tue, 07 May 2013 05:37:15 GMT
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

Mime
View raw message