public static boolean equalsOrMatch(String string, String pattern) {
    """
	Checks if two strings are equals or if they {@link #match(String, String)}.
	Useful for cases when matching a lot of equal strings and speed is important.
    """
        return string.equals(pattern) || match(string, pattern, 0, 0);
    }
public static boolean equalsOrMatch(String string, String pattern) {
        return string.equals(pattern) || match(string, pattern, 0, 0);
    }
public static boolean equalsOrMatch ( String string , String pattern ) { return string . equals ( pattern ) || match ( string , pattern , 0 , 0 ) ; }
Checks if two strings are equals or if they {@link #match(String, String)}.
Useful for cases when matching a lot of equal strings and speed is important.
Checks if two strings are equals or if they {