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 2011/07/15 07:58:59 UTC

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

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

        

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

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
    [ 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

        

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

Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
     [ 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