public static boolean equalsOrMatch(CharSequence string, CharSequence pattern) {
        if (string.equals(pattern) == true) {
            return true;
        }
        return match(string, pattern, 0, 0);
    }
Checks if two strings are equals or if they {@link #match(CharSequence, CharSequence)}.
Useful for cases when matching a lot of equal strings and speed is important.
indexr-common/src/main/java/io/indexr/util/Wildcard.java