You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2009/09/11 19:30:57 UTC

[jira] Resolved: (COLLECTIONS-260) TransformingComparator should have a constructor with just a Transformer

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

Matt Benson resolved COLLECTIONS-260.
-------------------------------------

    Resolution: Fixed

Okay, TransformingComparator always had a (Transformer) constructor, but the whole class, including this constructor, was generified svn rev 738956

> 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: Generics
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.