public final boolean matches ( @ NotNull final String targetPath ) { Contract . requireArgNotNull ( "targetPath" , targetPath ) ; if ( regExpr == null ) { return true ; } return regExpr . matcher ( targetPath ) . find ( ) ; }
Returns if the pattern matches the given path .