public static String defaultIfNull(final String s, final String defaultStr) {
    """
	<p>
	Returns either the passed in String, or if the String is {@code null},
	the value of {@code defaultStr}.
	</p>
	
	<pre>
	StringUtils.defaultIfNull(null, "NULL")  = "NULL"
	StringUtils.defaultIfNull("", "NULL")    = ""
	StringUtils.defaultIfNull("bat", "NULL") = "bat"
	</pre>
    """
        return s == null ? defaultStr : s;
    }
public static String defaultIfNull(final String s, final String defaultStr) {
        return s == null ? defaultStr : s;
    }
public static String defaultIfNull ( final String s , final String defaultStr ) { return s == null ? defaultStr : s ; }
<p>
Returns either the passed in String, or if the String is {@code null},
the value of {@code defaultStr}.
</p>

<pre>
StringUtils.defaultIfNull(null, "NULL")  = "NULL"
StringUtils.defaultIfNull("", "NULL")    = ""
StringUtils.defaultIfNull("bat", "NULL") = "bat"
</pre>
<p > Returns either the passed in String or if the String is { @code null } the value of { @code defaultStr } . < / p >