MCPcopy Create free account
hub / github.com/BaseXdb/basex / eqic

Method eqic

basex-core/src/main/java/org/basex/util/Strings.java:121–126  ·  view source on GitHub ↗

Compares several strings for equality, ignoring the case. @param string first string (can be null) @param strings strings to be compared (can contain null references) @return true if test is successful

(final String string, final String... strings)

Source from the content-addressed store, hash-verified

119 * @return {@code true} if test is successful
120 */
121 public static boolean eqic(final String string, final String... strings) {
122 for(final String str : strings) {
123 if(string == null ? str == null : string.equalsIgnoreCase(str)) return true;
124 }
125 return false;
126 }
127
128 /**
129 * Splits a string around matches of the given separator.

Callers 4

getMethod · 0.95
isTrueMethod · 0.95
isFalseMethod · 0.95
LogTargetEnum · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected