public static Double parseDouble(String value, Double defaultValue) {
        if (isNullOrEmpty(value)) {
            return defaultValue;
        }
        return Double.parseDouble(value);
    }
public static Double parseDouble ( String value , Double defaultValue ) { if ( isNullOrEmpty ( value ) ) { return defaultValue ; } return Double . parseDouble ( value ) ; }
Parses the provided string value into a double value.
<p>If the string is null or empty this returns the default value.</p>

@param value        value to parse
@param defaultValue default value
@return double representation of provided value or default value.