commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne (JIRA)" <>
Subject [jira] Commented: (COLLECTIONS-259) TransformerClosure should implement Transformer and allow extension.
Date Fri, 13 Jul 2007 08:43:05 GMT


Stephen Colebourne commented on COLLECTIONS-259:

My preference would be to see the Predicate/Transformer/Closure parts of [collections-generics]
separated into a separate jar/project, as I don't think that they are the main focus of interest
for [collections]. Then, I think adding new constructors/methods like this would have less
impact (eg. on jar file size of the main [collections] jar)

> TransformerClosure should implement Transformer and allow extension.
> --------------------------------------------------------------------
>                 Key: COLLECTIONS-259
>                 URL:
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Functor
>    Affects Versions: 3.2
>            Reporter: Stephen Kestle
>            Priority: Minor
>             Fix For: 3.3, Generics
> TransformerClosure currently decorates a transformer.  However, in the interests of non-verbose
code, it makes sense to be able to subclass it for a class that implements both interfaces.
> I propose the addition of the following constructor and method
> protected TransformerClosure(){
>      iTransformer = this;
> }
> public O transform(I in){
>     return iTransformer.transform();
> }

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message