public static boolean definitionMatches(String definition, String databaseShortName, boolean returnValueIfEmpty) {
    """
	Compares a given database to a database definition string.
	<p></p>
	Definition syntax: Comma separated list of database shortNames. Doesn't matter if it includes spaces.
	Can exclude a database by prepending its name with a '!'.
	The string "all" will match all databases. The string "none" will match no databases, even if others are listed.
	If an empty or null definition or null is passed, it will return the passed returnValueIfEmpty value.
    """
        return definitionMatches(StringUtil.splitAndTrim(StringUtil.trimToNull(definition), ","), databaseShortName, returnValueIfEmpty);
    }
public static boolean definitionMatches(String definition, String databaseShortName, boolean returnValueIfEmpty) {
        return definitionMatches(StringUtil.splitAndTrim(StringUtil.trimToNull(definition), ","), databaseShortName, returnValueIfEmpty);
    }
public static boolean definitionMatches ( String definition , String databaseShortName , boolean returnValueIfEmpty ) { return definitionMatches ( StringUtil . splitAndTrim ( StringUtil . trimToNull ( definition ) , "," ) , databaseShortName , returnValueIfEmpty ) ; }
Compares a given database to a database definition string.
<p></p>
Definition syntax: Comma separated list of database shortNames. Doesn't matter if it includes spaces.
Can exclude a database by prepending its name with a '!'.
The string "all" will match all databases. The string "none" will match no databases, even if others are listed.
If an empty or null definition or null is passed, it will return the passed returnValueIfEmpty value.
Compares a given database to a database definition string . <p > < / p > Definition syntax : Comma separated list of database shortNames . Doesn t matter if it includes spaces . Can exclude a database by prepending its name with a ! . The string all will match all databases . The string none will match no databases even if others are listed . If an empty or null definition or null is passed it will return the passed returnValueIfEmpty value .