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

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