commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (COLLECTIONS-259) TransformerClosure should implement Transformer and allow extension.
Date Fri, 13 Jul 2007 18:41:04 GMT

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

Matt Benson edited comment on COLLECTIONS-259 at 7/13/07 11:39 AM:
-------------------------------------------------------------------

Would reopening commons-functor satisfy this?  Possibly by providing adapters in the right
places, a functor-dependent collections 2.x could be a minimally invasive upgrade for current
consumers.


 was:
Would reopening commons-functor satisfy this?  Possibly by providing adapters in the right
places, a functor-dependent collections 2.x could be a minimally invasive upgrade for current
consumers?

> TransformerClosure should implement Transformer and allow extension.
> --------------------------------------------------------------------
>
>                 Key: COLLECTIONS-259
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-259
>             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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message