You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2010/04/14 02:39:57 UTC

[jira] Updated: (MATH-260) Inconsistent API in Frequency

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

Phil Steitz updated MATH-260:
-----------------------------

    Fix Version/s: 2.1

> Inconsistent API in Frequency
> -----------------------------
>
>                 Key: MATH-260
>                 URL: https://issues.apache.org/jira/browse/MATH-260
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 2.1
>
>
> The overloaded Frequency methods are not consistent in the parameter types that they handle.
> addValue() has an Integer version which converts the parameter to a Long, and then calls addValue(Object).
> The various getxxx() methods all handle Integer parameters as an Object.
> Seems to me that it would be better to treat Integer consistently.
> But perhaps there is a good reason for having an addValue(Integer) method but no getxxx(Integer) methods?
> If so, then it would be helpful to document this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira