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] [Reopened] (COLLECTIONS-260) TransformingComparator should have a constructor with just a Transformer
Date Thu, 28 Feb 2013 20:03:13 GMT

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

Thomas Neidhart reopened COLLECTIONS-260:
-----------------------------------------

    
> TransformingComparator should have a constructor with just a Transformer
> ------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-260
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-260
>             Project: Commons Collections
>          Issue Type: Improvement
>          Components: Comparator
>    Affects Versions: 3.2
>            Reporter: Stephen Kestle
>            Priority: Minor
>             Fix For: 4.0
>
>
> With generics, it's possible to have a constructor like:
> TransformingComparator(Transformer<I, O extends Comparable> transformer) {
>         this(transformer, new ComparableComparator());
>     }
> *NB: Pseudo code - that will not work as is

--
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