public static double nonNegative ( final double value , final String message ) { if ( value < 0 ) { throw new IllegalArgumentException ( format ( "%s must not be negative: %f." , message , value ) ) ; } return value ; }
Check if the specified value is not negative .