commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne (JIRA)" <>
Subject [jira] Closed: (COLLECTIONS-218) does not return passed in collection
Date Wed, 19 Jul 2006 21:55:16 GMT
     [ ]

Stephen Colebourne closed COLLECTIONS-218.

    Resolution: Won't Fix

This change is logically sensible. However, it is backwards incompatible (changing a return
type is binary incompatible). As such e cannot incorporate this proposal. Sorry.

> does not return passed in collection
> -------------------------------------------------------------
>                 Key: COLLECTIONS-218
>                 URL:
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 3.2
>            Reporter: Stephen Kestle
>         Assigned To: Stephen Colebourne
>         Attachments: CollectionUtils select return.patch
> collect has the following methods: 
> Collection collect(Collection inputCollection, final Transformer transformer)
> Collection collect(Collection inputCollection, final Transformer transformer, final Collection
> The first creates an ArrayList(), where the second takes an outputCollection and, for
convenience, returns it.
> Select (and selectReject) currently the following methods:
> Collection select(Collection inputCollection, Predicate predicate)
> void select(Collection inputCollection, Predicate predicate, Collection outputCollection)
> I propose changing the bottom method to return the passed in outputCollection.  It would
simplify calling code.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message