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] [Updated] (COLLECTIONS-259) TransformerClosure should implement Transformer and allow extension.
Date Thu, 28 Feb 2013 19:55:15 GMT

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

Thomas Neidhart updated COLLECTIONS-259:
----------------------------------------

    Fix Version/s:     (was: 4.x)
                       (was: 4.0-beta-1)
    
> 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
>
> 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.
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