Change ObjectUtils min() & max() functions to use varargs rather than just two
parameters
-----------------------------------------------------------------------------------------
Key: LANG-668
URL: https://issues.apache.org/jira/browse/LANG-668
Project: Commons Lang
Issue Type: Improvement
Components: lang.*
Affects Versions: 2.5
Reporter: Niall Pemberton
Assignee: Niall Pemberton
Priority: Minor
Fix For: 3.0
Currently ObjectUtils has min() and max() method with the following signatures:
{code}
public static <T extends Comparable<? super T>> T min(T c1, T c2)
public static <T extends Comparable<? super T>> T max(T c1, T c2)
{code}
It would be useful to change these from taking just two parameters to any
number using varags:
{code}
public static <T extends Comparable<? super T>> T min(T... values)
public static <T extends Comparable<? super T>> T max(T... values)
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.