Checks if text matches any of @param patterns}. @param text The text to be matched. @param patterns List of patterns. @return true if given text matches at least one glob pattern or false otherwise. @see <a href="https://en.wikipedia.org/wiki/Gl
(Path text, List<PathMatcher> patterns)
| 126 | * glob (programming)</a> |
| 127 | */ |
| 128 | public static boolean matches(Path text, List<PathMatcher> patterns) { |
| 129 | for (PathMatcher pattern : patterns) { |
| 130 | if (pattern.matches(text)) { |
| 131 | return true; |
| 132 | } |
| 133 | } |
| 134 | return false; |
| 135 | } |
| 136 | |
| 137 | } |
no outgoing calls