Lines Matching defs:pattern
39 private final Pattern pattern;
42 * Constructs a pattern file name filter object.
43 * @param patternStr the pattern string on which to filter file names
45 * @throws PatternSyntaxException if pattern compilation fails (runtime)
52 * Constructs a pattern file name filter object.
53 * @param pattern the pattern on which to filter file names
55 public PatternFilenameFilter(Pattern pattern) {
56 this.pattern = Preconditions.checkNotNull(pattern);
60 return pattern.matcher(fileName).matches();