You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2013/05/08 13:37:15 UTC

[jira] [Commented] (COLLECTIONS-466) Replace Collection with Iterable where applicable in the API

    [ https://issues.apache.org/jira/browse/COLLECTIONS-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13651807#comment-13651807 ] 

Thomas Neidhart commented on COLLECTIONS-466:
---------------------------------------------

Replaced MapUtils.populateMap in r1480230.
                
> 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