@ NullSafe public static double max ( final double ... values ) { double maxValue = Double . NaN ; if ( values != null ) { for ( double value : values ) { maxValue = ( Double . isNaN ( maxValue ) ? value : Math . max ( maxValue , value ) ) ; } } return maxValue ; }
Determines the maximum numerical value in an array of values .