commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MATH-261) Add generics to Frequency
Date Wed, 15 Apr 2009 10:28:14 GMT

    [ https://issues.apache.org/jira/browse/MATH-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12699142#action_12699142
] 

Luc Maisonobe commented on MATH-261:
------------------------------------

I did not suggest to simply remove the (T) cast and leave the obj parameter, but to replace:

{noformat}
  freqTable.put((T)obj, Long ...);
{noformat}
by
{noformat}
  freqTable.put(v, Long ...);
{noformat}

The v parameter already is of type T.


> Add generics to Frequency
> -------------------------
>
>                 Key: MATH-261
>                 URL: https://issues.apache.org/jira/browse/MATH-261
>             Project: Commons Math
>          Issue Type: Improvement
>            Reporter: Sebb
>             Fix For: 2.0
>
>         Attachments: Frequency.patch
>
>
> I've attempted to add generics to Frequency.
> This requires a minor change to the API, in that Objects to be used with the class need
to be Comparable.
> This will break some code, e.g. one change was needed to the test cases.

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


Mime
View raw message