public boolean anyMatched ( String [ ] requestPathTokens ) { Map < String , String > pathParams = new HashMap <> ( ) ; for ( PathPattern pattern : routes . keySet ( ) ) { if ( pattern . match ( requestPathTokens , pathParams ) ) { return true ; } // Reset for the next loop pathParams . clear ( ) ; } return false ; }
Checks if there s any matching route .