JDK-6358350 : Math.min and Math.max should be able to accept a variable sized list
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-12-02
  • Updated: 2010-04-02
  • Resolved: 2005-12-02
Related Reports
Duplicate :  
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
Methods should be added to Math that allow the min and max functions to be applied to an arbirtary number of elements.

JUSTIFICATION :
This would make it much more clear to write code that has to do a min/max comparison on more than two elements.

Comments
EVALUATION Duplicate of previously requested functionality; methods in Math could take var-args of Comparables (6239196) or there could be methods on Arrays (6356743).
02-12-2005