[
https://issues.apache.org/jira/browse/MATH-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phil Steitz closed MATH-260.
----------------------------
> 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