[jira] [Created] (LANG-723) Add mode and median Comparable... methods to ObjectUtils

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (LANG-723) Add mode and median Comparable... methods to ObjectUtils

Sebb (Jira)
Add mode and median Comparable... methods to ObjectUtils
--------------------------------------------------------

                 Key: LANG-723
                 URL: https://issues.apache.org/jira/browse/LANG-723
             Project: Commons Lang
          Issue Type: Sub-task
            Reporter: Matt Benson


ObjectUtils is the class where we have our Comparable support, so is the correct place for these.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LANG-723) Add mode and median Comparable... methods to ObjectUtils

Sebb (Jira)

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

Matt Benson updated LANG-723:
-----------------------------

    Priority: Minor  (was: Major)

> Add mode and median Comparable... methods to ObjectUtils
> --------------------------------------------------------
>
>                 Key: LANG-723
>                 URL: https://issues.apache.org/jira/browse/LANG-723
>             Project: Commons Lang
>          Issue Type: Sub-task
>          Components: General
>            Reporter: Matt Benson
>            Priority: Minor
>             Fix For: 3.x
>
>
> ObjectUtils is the class where we have our Comparable support, so is the correct place for these.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (LANG-723) Add mode and median Comparable... methods to ObjectUtils

Sebb (Jira)
In reply to this post by Sebb (Jira)

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

Matt Benson resolved LANG-723.
------------------------------

    Resolution: Fixed

Committed revision 1147522.

Implemented median with the decision that an even number of values would result in an approximation by simply returning the lower of the two middle values.  Also included {{<T> /* not required to be comparable */ T median(Comparator<T>, T...)}}


> Add mode and median Comparable... methods to ObjectUtils
> --------------------------------------------------------
>
>                 Key: LANG-723
>                 URL: https://issues.apache.org/jira/browse/LANG-723
>             Project: Commons Lang
>          Issue Type: Sub-task
>          Components: General
>            Reporter: Matt Benson
>            Priority: Minor
>             Fix For: 3.x
>
>
> ObjectUtils is the class where we have our Comparable support, so is the correct place for these.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Issue Comment Edited] (LANG-723) Add mode and median Comparable... methods to ObjectUtils

Sebb (Jira)
In reply to this post by Sebb (Jira)

    [ https://issues.apache.org/jira/browse/LANG-723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066583#comment-13066583 ]

Matt Benson edited comment on LANG-723 at 7/17/11 4:25 AM:
-----------------------------------------------------------

Committed revision 1147522.

Implemented median with the decision that an even number of values would result in an approximation by simply returning the lower of the two middle values.  Also included:
{{<T> /* not required to be comparable */ T median(Comparator<T>, T...)}}


      was (Author: mbenson):
    Committed revision 1147522.

Implemented median with the decision that an even number of values would result in an approximation by simply returning the lower of the two middle values.  Also included {{<T> /* not required to be comparable */ T median(Comparator<T>, T...)}}

 

> Add mode and median Comparable... methods to ObjectUtils
> --------------------------------------------------------
>
>                 Key: LANG-723
>                 URL: https://issues.apache.org/jira/browse/LANG-723
>             Project: Commons Lang
>          Issue Type: Sub-task
>          Components: General
>            Reporter: Matt Benson
>            Priority: Minor
>             Fix For: 3.x
>
>
> ObjectUtils is the class where we have our Comparable support, so is the correct place for these.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LANG-723) Add mode and median Comparable... methods to ObjectUtils

Sebb (Jira)
In reply to this post by Sebb (Jira)

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

Henri Yandell updated LANG-723:
-------------------------------

    Fix Version/s:     (was: 3.x)
                   3.0.1

> Add mode and median Comparable... methods to ObjectUtils
> --------------------------------------------------------
>
>                 Key: LANG-723
>                 URL: https://issues.apache.org/jira/browse/LANG-723
>             Project: Commons Lang
>          Issue Type: Sub-task
>          Components: General
>            Reporter: Matt Benson
>            Priority: Minor
>             Fix For: 3.0.1
>
>
> ObjectUtils is the class where we have our Comparable support, so is the correct place for these.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira