jetbrick-commons/src/main/java/jetbrick/lang/WildcharPathUtils.java
public static int matchPathOne(String path, String[] patterns) {
        for (int i = 0; i < patterns.length; i++) {
            if (matchPath(path, patterns[i]) == true) {
                return i;
            }
        }
        return -1;
    }
public static int matchPathOne(String path, String[] patterns) {
        for (int i = 0; i < patterns.length; i++) {
            if (matchPath(path, patterns[i]) == true) {
                return i;
            }
        }
        return -1;
    }
public static int matchPathOne ( String path , String [ ] patterns ) { for ( int i = 0 ; i < patterns . length ; i ++ ) { if ( matchPath ( path , patterns [ i ] ) == true ) { return i ; } } return - 1 ; }
Matches path to at least one pattern.
Returns index of matched pattern or <code>-1</code> otherwise.
@see #matchPath(String, String)
Matches path to at least one pattern . Returns index of matched pattern or <code > - 1< / code > otherwise .